Show More
@@ -34,6 +34,8 b' parser.add_option("-C", "--annotate", ac' | |||||
34 | help="output files annotated with coverage") |
|
34 | help="output files annotated with coverage") | |
35 | parser.add_option("-r", "--retest", action="store_true", |
|
35 | parser.add_option("-r", "--retest", action="store_true", | |
36 | help="retest failed tests") |
|
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 | parser.set_defaults(timeout=180) |
|
40 | parser.set_defaults(timeout=180) | |
39 | (options, args) = parser.parse_args() |
|
41 | (options, args) = parser.parse_args() | |
@@ -371,6 +373,8 b' try:' | |||||
371 | skipped += 1 |
|
373 | skipped += 1 | |
372 | elif not ret: |
|
374 | elif not ret: | |
373 | failed += 1 |
|
375 | failed += 1 | |
|
376 | if options.first: | |||
|
377 | break | |||
374 | tests += 1 |
|
378 | tests += 1 | |
375 |
|
379 | |||
376 | print "\n# Ran %d tests, %d skipped, %d failed." % (tests, skipped, |
|
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