test-png

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 28 16:50:31 UTC 2025


 test-png |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34787ba0b7846f9e62d4c41214864bd3a1282fcd
Author: Akihiko Odaki <akihiko.odaki at daynix.com>
Date:   Fri Feb 28 20:24:39 2025 +0900

    Fix test-png compatibility with ImageMagick
    
    ImageMagick uses the format "%.*g (%.*g)" since 7.1.1-44:
    https://github.com/ImageMagick/ImageMagick/commit/d85a7583f9a96bf031941c24d774b71529de3ce0
    
    Signed-off-by: Akihiko Odaki <akihiko.odaki at daynix.com>

diff --git a/test-png b/test-png
index 8e4bdd9..99c5e56 100755
--- a/test-png
+++ b/test-png
@@ -35,7 +35,7 @@ fi
 
 compare_images() {
     DIFF=$($MAGICK compare -metric AE $1 $2 - 2>&1 > /dev/null || true)
-    if [ "$DIFF" != "0" ]; then
+    if [ "$DIFF" != "0 (0)" && "$DIFF" != "0" ]; then
         error "Images $1 and $2 are too different, diff $DIFF"
     fi
 }


More information about the Spice-commits mailing list