diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2015-12-14 21:28:46 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2015-12-14 21:28:46 +0000 |
commit | 685a7570ecfa07fda30be12098bf5e6d392d1e4d (patch) | |
tree | feb9dde6f0e0329d172265b96757861dadf395ab /lldb/packages/Python/lldbsuite/test/dotest_args.py | |
parent | e1eb5e39f5c4bc2d66bec4cc7895fbac85a3dc3f (diff) | |
download | bcm5719-llvm-685a7570ecfa07fda30be12098bf5e6d392d1e4d.tar.gz bcm5719-llvm-685a7570ecfa07fda30be12098bf5e6d392d1e4d.zip |
test infra: enable single-worker rerun phase for flakey tests.
Use of --rerun-all-issues will enable any test method failure, not just
test methods marked with the flakey decorator, to rerun.
Currently this does not change the flakey logic's immediate rerun
attempt. I want to make sure this doesn't cause any significant issues
before changing that part.
The rerun reporting is only known to work properly with the
default (new) BasicResultsFormatter reporting. Once we work out
any issues, I'll go back and make sure the curses output handles
it properly as well.
llvm-svn: 255543
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest_args.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py index b0fda3506a5..105156df7e8 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest_args.py +++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py @@ -160,6 +160,7 @@ def create_parser(): 'be specified as VAL:TYPE, where TYPE may be int to convert ' 'the value to an int')) + # Re-run related arguments group = parser.add_argument_group('Test Re-run Options') group.add_argument( '--rerun-all-issues', @@ -168,6 +169,16 @@ def create_parser(): 'irrespective of the test method\'s marking as flakey. ' 'Default behavior is to apply re-runs only to flakey ' 'tests that generate issues.')) + group.add_argument( + '--rerun-max-file-threshold', + action='store', + type=int, + default=50, + help=('Maximum number of files requiring a rerun beyond ' + 'which the rerun will not occur. This is meant to ' + 'stop a catastrophically failing test suite from forcing ' + 'all tests to be rerun in the single-worker phase.')) + # Remove the reference to our helper function del X |