Skip to content

Commit 8f7029b

Browse files
committed
Merge branch 'topic/482w' into 'master'
checker test driver: fix output refiner See merge request eng/libadalang/langkit-query-language!505
2 parents 6e795ed + 5c9bb81 commit 8f7029b

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)