[Lldb-commits] [lldb] r247101 - Fix regressions in dotest.py when passing filters or directories.

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 8 16:22:20 PDT 2015

Author: tfiala
Date: Tue Sep  8 18:22:19 2015
New Revision: 247101

URL: http://llvm.org/viewvc/llvm-project?rev=247101&view=rev
Fix regressions in dotest.py when passing filters or directories.

See https://llvm.org/bugs/show_bug.cgi?id=24708 for details.
Using '-f FILTER' or unnamed arguments (directories) to dotest.py
will now force no-multiprocessing mode.  This stops a bombardment
of test output spam when following the instructions we provide
in a test session trace for rerunning the test.


Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=247101&r1=247100&r2=247101&view=diff
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Sep  8 18:22:19 2015
@@ -635,6 +635,17 @@ def parseOptionsAndInitTestdirs():
         if any([x.startswith('-') for x in args.f]):
+        # Shut off multiprocessing mode when additional filters are specified.
+        # The rational is that the user is probably going after a very specific
+        # test and doesn't need a bunch of parallel test runners all looking for
+        # it in a frenzy.  Also, '-v' now spits out all test run output even
+        # on success, so the standard recipe for redoing a failing test (with -v
+        # and a -f to filter to the specific test) now causes all test scanning
+        # (in parallel) to print results for do-nothing runs in a very distracting
+        # manner.  If we really need filtered parallel runs in the future, consider
+        # adding a --no-output-on-success that prevents -v from setting
+        # output-on-success.
+        no_multiprocess_test_runner = True
     if args.g:
         fs4all = False
@@ -780,6 +791,8 @@ def parseOptionsAndInitTestdirs():
     # Gather all the dirs passed on the command line.
     if len(args.args) > 0:
         testdirs = map(os.path.abspath, args.args)
+        # Shut off multiprocessing mode when test directories are specified.
+        no_multiprocess_test_runner = True
     # If '-r dir' is specified, the tests should be run under the relocated
     # directory.  Let's copy the testdirs over.

More information about the lldb-commits mailing list