tests/run-tests.py
branchstable
changeset 1232 8730a2885d7c
parent 1231 c6a4dd8d18a9
child 1233 e15c19e34344
equal deleted inserted replaced
1231:c6a4dd8d18a9 1232:8730a2885d7c
   872         result('p', test)
   872         result('p', test)
   873 
   873 
   874     def ignore(msg):
   874     def ignore(msg):
   875         result('i', (test, msg))
   875         result('i', (test, msg))
   876 
   876 
       
   877     def describe(ret):
       
   878         if ret < 0:
       
   879             return 'killed by signal %d' % -ret
       
   880         return 'returned error code %d' % ret
       
   881 
   877     if not os.path.exists(test):
   882     if not os.path.exists(test):
   878             skip("doesn't exist")
   883             skip("doesn't exist")
   879             return None
   884             return None
   880 
   885 
   881     if not (options.whitelisted and test in options.whitelisted):
   886     if not (options.whitelisted and test in options.whitelisted):
   964         # Save errors to a file for diagnosis
   969         # Save errors to a file for diagnosis
   965         f = open(err, "wb")
   970         f = open(err, "wb")
   966         for line in out:
   971         for line in out:
   967             f.write(line)
   972             f.write(line)
   968         f.close()
   973         f.close()
   969 
       
   970     def describe(ret):
       
   971         if ret < 0:
       
   972             return 'killed by signal %d' % -ret
       
   973         return 'returned error code %d' % ret
       
   974 
   974 
   975     if skipped:
   975     if skipped:
   976         mark = 's'
   976         mark = 's'
   977         if out is None:                 # debug mode: nothing to parse
   977         if out is None:                 # debug mode: nothing to parse
   978             missing = ['unknown']
   978             missing = ['unknown']