[llvm-branch-commits] [lldb] r270129 - Fix dotest.py '-p' option for multi-process mode

Francis Ricci via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 19 14:01:31 PDT 2016


Author: fjricci
Date: Thu May 19 16:01:31 2016
New Revision: 270129

URL: http://llvm.org/viewvc/llvm-project?rev=270129&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>

This is a cherry-pick of r265422

Modified:
    lldb/branches/release_38/packages/Python/lldbsuite/test/dosep.py

Modified: lldb/branches/release_38/packages/Python/lldbsuite/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/release_38/packages/Python/lldbsuite/test/dosep.py?rev=270129&r1=270128&r2=270129&view=diff
==============================================================================
--- lldb/branches/release_38/packages/Python/lldbsuite/test/dosep.py (original)
+++ lldb/branches/release_38/packages/Python/lldbsuite/test/dosep.py Thu May 19 16:01:31 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 llvm-branch-commits mailing list