diff options
author | Anthony Fok <[email protected]> | 2021-10-28 16:14:14 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-10-30 08:47:22 +0200 |
commit | dce49d13336f3dbadaa1359322a277ad4cb55679 (patch) | |
tree | e2e293c28819ca8566843bcdebf6e49527c697c9 | |
parent | 61c5b7a2e623255be99da7adf200f0591c9a1195 (diff) | |
download | hugo-dce49d13336f3dbadaa1359322a277ad4cb55679.tar.gz hugo-dce49d13336f3dbadaa1359322a277ad4cb55679.zip |
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
-rw-r--r-- | resources/image_test.go | 7 |
1 files 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()) |