[Lldb-commits] [lldb] 73f11f9 - [lldb][test] Correct results regex for Windows
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 26 02:56:18 PST 2024
Author: David Spickett
Date: 2024-02-26T10:55:31Z
New Revision: 73f11f9579a3206608ad9a07b5793ba451676087
URL: https://github.com/llvm/llvm-project/commit/73f11f9579a3206608ad9a07b5793ba451676087
DIFF: https://github.com/llvm/llvm-project/commit/73f11f9579a3206608ad9a07b5793ba451676087.diff
LOG: [lldb][test] Correct results regex for Windows
On Windows the line has \r\n at the end.
Added:
Modified:
lldb/test/API/lldbtest.py
Removed:
################################################################################
diff --git a/lldb/test/API/lldbtest.py b/lldb/test/API/lldbtest.py
index bae73e71820f73..c888fb574f4b7f 100644
--- a/lldb/test/API/lldbtest.py
+++ b/lldb/test/API/lldbtest.py
@@ -101,7 +101,7 @@ def execute(self, test, litConfig):
# Example: "OK (skipped=1, expected failures=1)"
# Example: "FAILED (failures=3)"
# Example: "OK"
- result_regex = r"^(?:OK|FAILED)(?: \((.*)\))?$"
+ result_regex = r"^(?:OK|FAILED)(?: \((.*)\))?\r?$"
results = re.search(result_regex, err, re.MULTILINE)
# If parsing fails mark this test as unresolved.
More information about the lldb-commits
mailing list