[Lldb-commits] [lldb] r265422 - Fix dotest.py '-p' option for multi-process mode

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 5 10:34:39 PDT 2016


Author: sas
Date: Tue Apr  5 12:34:38 2016
New Revision: 265422

URL: http://llvm.org/viewvc/llvm-project?rev=265422&view=rev
Log:
Fix dotest.py '-p' option for multi-process mode

Summary:
The '-p' option for dotest.py was ignored in multiprocess mode,
as the -p argument to the inferior would overwrite the -p argument
passed on the command line.

Reviewers: zturner, tfiala

Subscribers: lldb-commits, sas

Differential Revision: http://reviews.llvm.org/D18779

Change by Francis Ricci <fjricci at fb.com>

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dosep.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dosep.py?rev=265422&r1=265421&r2=265422&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dosep.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dosep.py Tue Apr  5 12:34:38 2016
@@ -420,6 +420,10 @@ def process_dir(root, files, dotest_argv
     results = []
     for (base_name, full_test_path) in files:
         import __main__ as main
+        global dotest_options
+        if dotest_options.p and not re.search(dotest_options.p, base_name):
+            continue
+
         script_file = main.__file__
         command = ([sys.executable, script_file] +
                    dotest_argv +




More information about the lldb-commits mailing list