diff options
author | Stephane Sezer <sas@cd80.net> | 2016-04-05 17:34:38 +0000 |
---|---|---|
committer | Stephane Sezer <sas@cd80.net> | 2016-04-05 17:34:38 +0000 |
commit | 0036ac4236d869ea6917bdd228bfac9e8ed311f2 (patch) | |
tree | 56f5b741665e74069eec33c5bcde738a0da346d6 /lldb/packages/Python/lldbsuite/test/dosep.py | |
parent | 6944f0eeb0b56868f32e050360db143972cb57a9 (diff) | |
download | bcm5719-llvm-0036ac4236d869ea6917bdd228bfac9e8ed311f2.tar.gz bcm5719-llvm-0036ac4236d869ea6917bdd228bfac9e8ed311f2.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dosep.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dosep.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dosep.py b/lldb/packages/Python/lldbsuite/test/dosep.py index 3ebb3aef963..8ec423c7f6c 100644 --- a/lldb/packages/Python/lldbsuite/test/dosep.py +++ b/lldb/packages/Python/lldbsuite/test/dosep.py @@ -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 + |