tests/run-tests.py
branchstable
changeset 1335 d15090c7d555
parent 1334 2ff0ff8404a5
child 1336 c213fb7b786f
equal deleted inserted replaced
1334:2ff0ff8404a5 1335:d15090c7d555
  1161     except KeyboardInterrupt:
  1161     except KeyboardInterrupt:
  1162         failed = True
  1162         failed = True
  1163         print "\ninterrupted!"
  1163         print "\ninterrupted!"
  1164 
  1164 
  1165     if failed:
  1165     if failed:
  1166         sys.exit(1)
  1166         return 1
  1167 
  1167 
  1168 testtypes = [('.py', pytest, '.out'),
  1168 testtypes = [('.py', pytest, '.out'),
  1169              ('.t', tsttest, '')]
  1169              ('.t', tsttest, '')]
  1170 
  1170 
  1171 def main():
  1171 def main():
  1271     vlog("# Using HGTMP", HGTMP)
  1271     vlog("# Using HGTMP", HGTMP)
  1272     vlog("# Using PATH", os.environ["PATH"])
  1272     vlog("# Using PATH", os.environ["PATH"])
  1273     vlog("# Using", IMPL_PATH, os.environ[IMPL_PATH])
  1273     vlog("# Using", IMPL_PATH, os.environ[IMPL_PATH])
  1274 
  1274 
  1275     try:
  1275     try:
  1276         runtests(options, tests)
  1276         sys.exit(runtests(options, tests) or 0)
  1277     finally:
  1277     finally:
  1278         time.sleep(.1)
  1278         time.sleep(.1)
  1279         cleanup(options)
  1279         cleanup(options)
  1280 
  1280 
  1281 if __name__ == '__main__':
  1281 if __name__ == '__main__':