tests/run-tests.py
branchstable
changeset 1336 c213fb7b786f
parent 1335 d15090c7d555
child 1337 6810b3c166cc
equal deleted inserted replaced
1335:d15090c7d555 1336:c213fb7b786f
  1072     if os.path.abspath(actualhg) != os.path.abspath(expecthg):
  1072     if os.path.abspath(actualhg) != os.path.abspath(expecthg):
  1073         sys.stderr.write('warning: %s with unexpected mercurial lib: %s\n'
  1073         sys.stderr.write('warning: %s with unexpected mercurial lib: %s\n'
  1074                          '         (expected %s)\n'
  1074                          '         (expected %s)\n'
  1075                          % (verb, actualhg, expecthg))
  1075                          % (verb, actualhg, expecthg))
  1076 
  1076 
  1077 results = {'.':[], '!':[], 's':[], 'i':[]}
  1077 results = {'.':[], '!':[], '~': [], 's':[], 'i':[]}
  1078 times = []
  1078 times = []
  1079 iolock = threading.Lock()
  1079 iolock = threading.Lock()
  1080 abort = False
  1080 abort = False
  1081 
  1081 
  1082 def scheduletests(options, tests):
  1082 def scheduletests(options, tests):
  1136                 tests = orig
  1136                 tests = orig
  1137 
  1137 
  1138         scheduletests(options, tests)
  1138         scheduletests(options, tests)
  1139 
  1139 
  1140         failed = len(results['!'])
  1140         failed = len(results['!'])
  1141         tested = len(results['.']) + failed
  1141         warned = len(results['~'])
       
  1142         tested = len(results['.']) + failed + warned
  1142         skipped = len(results['s'])
  1143         skipped = len(results['s'])
  1143         ignored = len(results['i'])
  1144         ignored = len(results['i'])
  1144 
  1145 
  1145         print
  1146         print
  1146         if not options.noskips:
  1147         if not options.noskips:
  1147             for s in results['s']:
  1148             for s in results['s']:
  1148                 print "Skipped %s: %s" % s
  1149                 print "Skipped %s: %s" % s
       
  1150         for s in results['~']:
       
  1151             print "Warned %s: %s" % s
  1149         for s in results['!']:
  1152         for s in results['!']:
  1150             print "Failed %s: %s" % s
  1153             print "Failed %s: %s" % s
  1151         _checkhglib("Tested")
  1154         _checkhglib("Tested")
  1152         print "# Ran %d tests, %d skipped, %d failed." % (
  1155         print "# Ran %d tests, %d skipped, %d warned, %d failed." % (
  1153             tested, skipped + ignored, failed)
  1156             tested, skipped + ignored, warned, failed)
  1154         if results['!']:
  1157         if results['!']:
  1155             print 'python hash seed:', os.environ['PYTHONHASHSEED']
  1158             print 'python hash seed:', os.environ['PYTHONHASHSEED']
  1156         if options.time:
  1159         if options.time:
  1157             outputtimes(options)
  1160             outputtimes(options)
  1158 
  1161