From dce49d13336f3dbadaa1359322a277ad4cb55679 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 28 Oct 2021 16:14:14 -0600 Subject: resources: Rename excepted filenames for image golden testdata As documented in commit 30eea3915b67f72611a3b2f4547146d4c6a96864, some filenames have changed due to cache busting of PNG and Webp images. This resolves recent TestImageOperationsGolden failure on arm64, ppc64le and s390x. See #6387 and #8729 --- resources/image_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/image_test.go b/resources/image_test.go index 3c4144584..911e50f6f 100644 --- a/resources/image_test.go +++ b/resources/image_test.go @@ -735,10 +735,9 @@ func assetGoldenDirs(c *qt.C, dir1, dir2 string) { if !goldenEqual(nrgba1, nrgba2) { switch fi1.Name() { - case "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_4c320010919da2d8b63ed24818b4d8e1.png", - "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_9d4c2220235b3c2d9fa6506be571560f.png", - "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_c74bb417b961e09cf1aac2130b7b9b85.png", - "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_300x200_fill_gaussian_smart1_2.png": + case "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_73c19c5f80881858a85aa23cd0ca400d.png", + "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_ae631e5252bb5d7b92bc766ad1a89069.png", + "gohugoio8_hu7f72c00afdf7634587afaa5eff2a25b2_73538_d1bbfa2629bffb90118cacce3fcfb924.png": c.Log("expectedly differs from golden due to dithering:", fi1.Name()) default: c.Errorf("resulting image differs from golden: %s", fi1.Name()) -- cgit v1.2.3