diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-05-08 13:12:22 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-05-08 13:14:18 -0700 |
commit | eb7d32e46fe184fdfcb52e0a25973e713047e305 (patch) | |
tree | 6f2a55663010358ded33a76dac37d301cc669e34 /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | c490c5e81ac90cbf079c7cee18cd56171f1e27af (diff) | |
download | llvm-eb7d32e46fe184fdfcb52e0a25973e713047e305.zip llvm-eb7d32e46fe184fdfcb52e0a25973e713047e305.tar.gz llvm-eb7d32e46fe184fdfcb52e0a25973e713047e305.tar.bz2 |
[lldb/Test] Update TestProcessList.py for reproducer replay
Because LLDB isn't the one spawning the subprocess, the PID is different
during replay. Exclude it form the substring check during replay.
Depends on D79646 to pass with reproducer replay.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/configuration.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py index ddae780..53f587b 100644 --- a/lldb/packages/Python/lldbsuite/test/configuration.py +++ b/lldb/packages/Python/lldbsuite/test/configuration.py @@ -160,3 +160,9 @@ def get_filecheck_path(): """ if filecheck and os.path.lexists(filecheck): return filecheck + +def is_reproducer_replay(): + """ + Returns true when test is replayed from a reproducer. + """ + return replay_path is not None |