shithub: hugo

Download patch

ref: 836c24261f9f175254256fb326d92a3db47e1c75
parent: c6d650c8c8b22fdc7ddedc1e42a3ca698e1390d6
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Jan 22 06:44:29 EST 2020

hugolib: Disable a test assertion on ARM

See #6655

--- a/hugolib/image_test.go
+++ b/hugolib/image_test.go
@@ -18,6 +18,7 @@
 	"os"
 	"path/filepath"
 	"runtime"
+	"strings"
 	"testing"
 
 	"github.com/gohugoio/hugo/htesting"
@@ -147,7 +148,7 @@
 	}
 
 	err = b.BuildE(BuildCfg{})
-	if runtime.GOOS != "windows" {
+	if runtime.GOOS != "windows" && !strings.Contains(runtime.GOARCH, "arm") {
 		// TODO(bep)
 		c.Assert(err, qt.Not(qt.IsNil))
 	}