Print failed test results at the end for the spec test suite#8154
Conversation
6925ad4 to
8f2f91d
Compare
| help='Disables running the torture testcases.') | ||
| parser.add_argument( | ||
| '--abort-on-first-failure', dest='abort_on_first_failure', | ||
| '--abort-on-first-failure', "--fail-fast", dest='abort_on_first_failure', |
There was a problem hiding this comment.
Single quotes here.
Also, I think we can just remove the old name here... the number folks who run this script is small enough we don't need to worry about back compat.
Also, you can use argparse.BooleanOptionalAction here maybe?
There was a problem hiding this comment.
Is there any harm in keeping the old name? It seems better to avoid breaking users if we can, and it doesn't look like a maintenance burden in this case.
|
Another nice addition (ideas for followups).
Even better, only print this single-line status (i.e. no stdout from the test) unless |
1 is already there actually, but the way that it counts errors is a little strange (this is with fail-fast enabled): Agreed on simplifying the output. For now we can actually redirect stdout to /dev/null and we'll only see failed outputs: |


shared.options.abort_on_first_failurework with the spec test suite and add aliases for --fail-fast and --no-fail-fastactualisn't defined).With

--no-fail-fast:With

--fail-fast(the default):