Build: #18 failed

Job: Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10 failed

Stages & jobs

  1. Default Stage

  2. Test Tasks Stage

  3. Test Tools Stage

su advisechansel getfreqrange ephem: Test case result

The below summarizes the result of the test " su advisechansel getfreqrange ephem" in build 18 of CASA - CMake MPI - Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10.
Description
su advisechansel getfreqrange ephem
Test class
tests.tools.synthesisutils.test_tool_synthesisutils.advisechansel_test
Method
test_su_advisechansel_getfreqrange_ephem
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

FileNotFoundError: [Errno 2] No such file or directory: 'alma_ephemobj_icrs.ms/FIELD/EPHEM0_Uranus_57362.91000000.tab'
self = <test_tool_synthesisutils.advisechansel_test testMethod=test_su_advisechansel_getfreqrange_ephem>

    def test_su_advisechansel_getfreqrange_ephem(self):
        '''Test that frequency range for given data selections for an ephemeris object is returned correctly'''
        su = synthesisutils()
        inputms ='alma_ephemobj_icrs.ms'
        tol  = 122070.3125 # chan width in Hz
        refdict = {'freqend': {'unit': 'Hz', 'value': 220344661518.86124}, 'freqstart': {'unit': 'Hz', 'value': 220295510184.3427}}
        res = su.advisechansel(freqframe='SOURCE', fieldid=1, getfreqrange=True, spwselection='2:251~652', ephemtable='TRACKFIELD', msname=inputms)
>       shutil.copytree(inputms+'/FIELD/EPHEM0_Uranus_57362.91000000.tab', 'external_EPHEM0_Uranus_57362.91000000.tab')

../../../casatools/tests/tools/synthesisutils/test_tool_synthesisutils.py:472: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

src = 'alma_ephemobj_icrs.ms/FIELD/EPHEM0_Uranus_57362.91000000.tab'
dst = 'external_EPHEM0_Uranus_57362.91000000.tab', symlinks = False
ignore = None, copy_function = <function copy2 at 0x7f35f3f98550>
ignore_dangling_symlinks = False, dirs_exist_ok = False

    def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
                 ignore_dangling_symlinks=False, dirs_exist_ok=False):
        """Recursively copy a directory tree and return the destination directory.
    
        dirs_exist_ok dictates whether to raise an exception in case dst or any
        missing parent directory already exists.
    
        If exception(s) occur, an Error is raised with a list of reasons.
    
        If the optional symlinks flag is true, symbolic links in the
        source tree result in symbolic links in the destination tree; if
        it is false, the contents of the files pointed to by symbolic
        links are copied. If the file pointed by the symlink doesn't
        exist, an exception will be added in the list of errors raised in
        an Error exception at the end of the copy process.
    
        You can set the optional ignore_dangling_symlinks flag to true if you
        want to silence this exception. Notice that this has no effect on
        platforms that don't support os.symlink.
    
        The optional ignore argument is a callable. If given, it
        is called with the `src` parameter, which is the directory
        being visited by copytree(), and `names` which is the list of
        `src` contents, as returned by os.listdir():
    
            callable(src, names) -> ignored_names
    
        Since copytree() is called recursively, the callable will be
        called once for each directory that is copied. It returns a
        list of names relative to the `src` directory that should
        not be copied.
    
        The optional copy_function argument is a callable that will be used
        to copy each file. It will be called with the source path and the
        destination path as arguments. By default, copy2() is used, but any
        function that supports the same signature (like copy()) can be used.
    
        """
        sys.audit("shutil.copytree", src, dst)
>       with os.scandir(src) as itr:
E       FileNotFoundError: [Errno 2] No such file or directory: 'alma_ephemobj_icrs.ms/FIELD/EPHEM0_Uranus_57362.91000000.tab'

/usr/local/lib/python3.10/shutil.py:554: FileNotFoundError