aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-23 10:30:11 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-23 10:30:11 +0100
commitc4fe45ff4cb9080ee968ecc4e80e09df6c366608 (patch)
tree409205a3bbff8bb55566dd75804bf049e58ccad9
parent554aa58db60000e7d375ffcdbd0143ac1bedf610 (diff)
downloadhugo-c4fe45ff4cb9080ee968ecc4e80e09df6c366608.tar.gz
hugo-c4fe45ff4cb9080ee968ecc4e80e09df6c366608.zip
resources: Skip the image golden tests when running locally
See #12119
-rw-r--r--resources/image_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/image_test.go b/resources/image_test.go
index 44861d629..a6b54d3dd 100644
--- 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()