##// END OF EJS Templates
run-tests: add --first switch to exit on first error
Matt Mackall -
r3301:3cd51b98 default
parent child Browse files
Show More
@@ -34,6 +34,8 b' parser.add_option("-C", "--annotate", ac'
34 34 help="output files annotated with coverage")
35 35 parser.add_option("-r", "--retest", action="store_true",
36 36 help="retest failed tests")
37 parser.add_option("-f", "--first", action="store_true",
38 help="exit on the first test failure")
37 39
38 40 parser.set_defaults(timeout=180)
39 41 (options, args) = parser.parse_args()
@@ -371,6 +373,8 b' try:'
371 373 skipped += 1
372 374 elif not ret:
373 375 failed += 1
376 if options.first:
377 break
374 378 tests += 1
375 379
376 380 print "\n# Ran %d tests, %d skipped, %d failed." % (tests, skipped,
General Comments 0
You need to be logged in to leave comments. Login now