equal
deleted
inserted
replaced
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__': |