]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
resources: Skip the image golden tests when running locally
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Feb 2024 09:30:11 +0000 (10:30 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Feb 2024 09:30:11 +0000 (10:30 +0100)
See #12119

resources/image_test.go

index 44861d629b8ba405f3606ac5bc30fe837f649f62..a6b54d3ddeb80b890d1dc747abc90dee6dc6db94 100644 (file)
@@ -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()