summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev/bless_tests.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index 121a011f9a..67c4defa3b 100644
--- a/scripts/dev/bless_tests.php
+++ b/scripts/dev/bless_tests.php
@@ -36,7 +36,9 @@ foreach ($it as $file) {
}
function normalizeOutput(string $out): string {
- $out = preg_replace('/in \/.+ on line \d+/', 'in %s on line %d', $out);
+ $out = preg_replace('/in \/.+ on line \d+$/m', 'in %s on line %d', $out);
+ $out = preg_replace('/in \/.+:\d+$/m', 'in %s:%d', $out);
+ $out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
return $out;
}