Changes in / [e982385:1dc58fd]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    re982385 r1dc58fd  
    7878                        else :
    7979                                print('ERROR: No expected file for test %s, ignoring it' % testname, file=sys.stderr)
     80
     81        # make sure we have at least some test to run
     82        if not tests :
     83                print('ERROR: No valid test to run', file=sys.stderr)
     84                sys.exit(1)
    8085
    8186        return tests
     
    261266                tests = validTests( options )
    262267
    263         # make sure we have at least some test to run
    264         if not tests :
    265                 print('ERROR: No valid test to run', file=sys.stderr)
    266                 sys.exit(1)
    267 
    268 
    269268        # sort the test alphabetically for convenience
    270269        tests.sort(key=lambda t: (t.arch if t.arch else '') + t.target())
Note: See TracChangeset for help on using the changeset viewer.