Skip to content

Commit 979d41b

Browse files
committed
qa: Fix Windows logging bug
The regex `(.*)` was capturing `\r` from subprocess output on Windows, causing the closing parenthesis in logs to wrap to the next line. Stripping whitespace from the regex match fixes the formatting.
1 parent ac76d94 commit 979d41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def proc_wait(task):
809809
status = "Passed"
810810
elif proc.returncode == TEST_EXIT_SKIPPED:
811811
status = "Skipped"
812-
skip_reason = re.search(r"Test Skipped: (.*)", stdout).group(1)
812+
skip_reason = re.search(r"Test Skipped: (.*)", stdout).group(1).strip()
813813
else:
814814
status = "Failed"
815815

0 commit comments

Comments
 (0)