git » firstones » commit 2ddd317

test: Update `magick compare` parsing to the new version

author Alberto Bertogli
2026-01-25 11:41:28 UTC
committer Alberto Bertogli
2026-01-25 11:41:28 UTC
parent 04e481d656c5c3dcba82fa8d58400ecf276c321c

test: Update `magick compare` parsing to the new version

The `magick compare` tool used to output "1" on equal files, but now it
outputs "0 (0)".

This patch updates our logic accordingly.

test/run.sh +2 -2

diff --git a/test/run.sh b/test/run.sh
index bd40e64..5a073c8 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -51,8 +51,8 @@ if ! ls --zero golden/*.png golden/auto/*.png | parallel -0 --results .3-compare
 		{} .2-render/{/.}.png  .2-render/{/.}-diff.png ;
 then
 	for i in .3-compare/*.err; do
-		if grep -q '^1$' "$i"; then
-			# The compare command prints "1" on equal files.
+		if grep -q '^0 (0)$' "$i"; then
+			# The compare command prints "0 (0)" on equal files.
 			continue
 		fi
 		C="$(basename "$i" .err)"