##// END OF EJS Templates
run-tests: handle sys.exit in main function
Simon Heimberg -
r20505:eca34583 default
parent child Browse files
Show More
@@ -1163,7 +1163,7 b' def runtests(options, tests):'
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, '')]
@@ -1273,7 +1273,7 b' def main():'
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)
General Comments 0
You need to be logged in to leave comments. Login now