Skip to content
Snippets Groups Projects
Commit cdcffc23 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Testsuite - add --stop-on-first-fail option to regression.py.

parent 27f9371a
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ def main(argv=None):
action='callback', callback=test_parser,
help='comma or space separated string of tests to include')
parser.add_option('-k', '--keep-logs', action='store_true', default=False)
parser.add_option('-s', '--stop-on-first-fail', action='store_true', default=False)
(options, args) = parser.parse_args(args=argv)
# Sanity check
......@@ -130,6 +131,8 @@ def main(argv=None):
failed_tests.append(test)
os.rename(testlog_name, testlog_name+'.failed')
sys.stdout.write('FAILED!\n')
if options.stop_on_first_fail:
break
sys.stdout.flush()
end_time = time.time()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment