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
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index b0fda35..105156d 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -160,6 +160,7 @@
               '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 @@
               '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