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@fb.com>

llvm-svn: 265422
This commit is contained in:
Stephane Sezer 2016-04-05 17:34:38 +00:00
parent 6944f0eeb0
commit 0036ac4236
1 changed files with 4 additions and 0 deletions

View File

@ -420,6 +420,10 @@ def process_dir(root, files, dotest_argv, inferior_pid_events):
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 +