Skip to content

Commit 5c9bb81

Browse files
committed
checker test driver: fix output refiner
1 parent 6e795ed commit 5c9bb81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testsuite/drivers/checker_driver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,7 @@ def parse_flagged_lines(self, output: str) -> dict[str, TaggedLines]:
116116
@property
117117
def output_refiners(self) -> list[OutputRefiner]:
118118
result = super().output_refiners
119-
result.append(Substitute(self.test_env['test_dir'], "<test-dir>"))
119+
# Insert this refiner first in the list so that canonicalize_backslashes
120+
# is run after the following substitution.
121+
result.insert(0, Substitute(self.test_env["test_dir"], "<test-dir>"))
120122
return result

0 commit comments

Comments
 (0)