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.

Github-Pull: #34282
Rebased-From: 979d41bfab248990d7d520873d17fe52daa8d402
This commit is contained in:
Hennadii Stepanov 2026-01-14 12:09:11 +00:00 committed by fanquake
parent 311da7fee3
commit de79f7d01c
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -765,7 +765,7 @@ class TestHandler:
status = "Passed"
elif proc.returncode == TEST_EXIT_SKIPPED:
status = "Skipped"
skip_reason = re.search(r"Test Skipped: (.*)", stdout).group(1)
skip_reason = re.search(r"Test Skipped: (.*)", stdout).group(1).strip()
else:
status = "Failed"
self.jobs.remove(job)