diff --git a/scripts/run_tests_batched.py b/scripts/run_tests_batched.py index 41d81ce3..747ed86f 100644 --- a/scripts/run_tests_batched.py +++ b/scripts/run_tests_batched.py @@ -89,11 +89,13 @@ _NOISE_PREFIXES: tuple[str, ...] = ( "[LogPruner]", "[startup]", "created: ", + "Error during log pruning", "=========", ) _NOISE_SUBSTRINGS: tuple[str, ...] = ( "[WinError", + "File must be opened in binary mode", ) def _format_pytest_line(line: str) -> str | None: @@ -114,6 +116,13 @@ def _format_pytest_line(line: str) -> str | None: return _c(stripped, _C.BOLD_RED) if " ERROR " in stripped and "[gw" in stripped: return _c(stripped, _C.BOLD_RED) + if stripped.startswith(("tests/", "tests\\")) and "::" in stripped: + if " PASSED" in stripped: + return _c(stripped, _C.GREEN) + if " FAILED" in stripped: + return _c(stripped, _C.BOLD_RED) + if " ERROR" in stripped: + return _c(stripped, _C.BOLD_RED) if stripped.startswith(("PASSED", "FAILED", "ERROR")) and "::" in stripped: status = stripped.split()[0] rest = stripped[len(status):]