Changeset 3464


Ignore:
Timestamp:
Aug 8, 2006, 4:50:33 PM (18 years ago)
Author:
ole
Message:

Fixed up test_all.py which failed after removal of pymetis and parallel. Also added better error message to deal with such cases.

Remember *always* to run test suite before committing!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/test_all.py

    r3422 r3464  
    1616#List files that should be excluded from the testing process.
    1717#E.g. if they are known to fail and under development
    18 exclude_files = ['test_metis.py', 'test_version.py', 'test_parallel_sw.py',
     18exclude_files = ['test_version.py',
    1919                 'test_advection.py', # removing this test for a bit
    2020                 ]
     
    7676    if globals().has_key('exclude_files'):
    7777        for file in exclude_files:
    78             files.remove(file)
    79             print 'WARNING: File '+ file + ' excluded from testing'
     78            print 'WARNING: File '+ file + ' to be excluded from testing'
     79            try:   
     80                files.remove(file)
     81            except ValueError, e:
     82                msg = 'File "%s" was not found in test suite.\n' %file
     83                msg += 'Original error is "%s"\n' %e
     84                msg += 'Perhaps it should be removed from exclude list?'
     85                raise Exception, msg
    8086
    8187    filenameToModuleName = lambda f: os.path.splitext(f)[0]
Note: See TracChangeset for help on using the changeset viewer.