From eb7d32e46fe184fdfcb52e0a25973e713047e305 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 8 May 2020 13:12:22 -0700 Subject: [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. --- lldb/packages/Python/lldbsuite/test/configuration.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py') 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 -- cgit v1.1