Changeset 433

Show
Ignore:
Timestamp:
Mon Feb 25 06:07:44 2008
Author:
naufraghi
Message:

Continue on test failure and report (...) at the end

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/python2.5/buildtests/runtests.py

    r430 r433  
    65 65     tests.sort(key=lambda x: (len(x), x)) # test1 < test10  
    66 66     path = os.environ["PATH"]  
      67     counter = dict(passed=[],failed=[])  
    67 68     for src in tests:  
    68 69         print  
     
    78 79         res = os.system('dist%s%s%s.exe' % (test, os.sep, test))  
    79 80         os.environ["PATH"] = path  
    80           assert res == 0, "%s Test error!" % src  
    81           print "################## FINISHING TEST %s ################################" % src  
    82    
      81         if res == 0:  
      82             counter["passed"].append(src)  
      83             print "################## FINISHING TEST %s ################################" % src  
      84         else:  
      85             counter["failed"].append(src)  
      86             print "#################### TEST %s FAILED #################################" % src  
      87     print counter  
    83 88 if __name__ == '__main__':  
    84 89     normal_tests = glob.glob('test*[0-9].py')  
     
    94 99  
    95 100     clean()  
    96       runtests(tests)  
      101     runtests(tests)