URI: 
       resources: Skip the image golden tests when running locally - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit c4fe45ff4cb9080ee968ecc4e80e09df6c366608
   DIR parent 554aa58db60000e7d375ffcdbd0143ac1bedf610
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Fri, 23 Feb 2024 10:30:11 +0100
       
       resources: Skip the image golden tests when running locally
       
       See #12119
       
       Diffstat:
         M resources/image_test.go             |       7 +++++++
       
       1 file changed, 7 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/resources/image_test.go b/resources/image_test.go
       @@ -30,6 +30,7 @@ import (
                "testing"
                "time"
        
       +        "github.com/gohugoio/hugo/htesting"
                "github.com/gohugoio/hugo/resources/images/webp"
        
                "github.com/gohugoio/hugo/common/paths"
       @@ -545,6 +546,9 @@ func goldenEqual(img1, img2 *image.NRGBA) bool {
        
        // Issue #8729
        func TestImageOperationsGoldenWebp(t *testing.T) {
       +        if !htesting.IsCI() {
       +                t.Skip("skip long running test in local mode")
       +        }
                if !webp.Supports() {
                        t.Skip("skip webp test")
                }
       @@ -584,6 +588,9 @@ func TestImageOperationsGoldenWebp(t *testing.T) {
        }
        
        func TestImageOperationsGolden(t *testing.T) {
       +        if !htesting.IsCI() {
       +                t.Skip("skip long running test in local mode")
       +        }
                c := qt.New(t)
                c.Parallel()