From: Filippo Valsorda Date: Thu, 24 Oct 2024 09:18:40 +0000 (+0200) Subject: crypto/internal/cryptotest: skip hardware support check on non-Linux builders X-Git-Tag: go1.24rc1~605 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=06cb3fbe62396200ac0d11351fd2530498cdf681;p=gostls13.git crypto/internal/cryptotest: skip hardware support check on non-Linux builders Non-Linux builder hardware is more varied, and the important thing is that we test on at least one builder. Fixes #70014 Fixes #70013 Fixes #70012 Change-Id: I33c4483c8b2792f6a15d6532e8cbae98b2888ea5 Reviewed-on: https://go-review.googlesource.com/c/go/+/622096 Auto-Submit: Filippo Valsorda Reviewed-by: Roland Shoemaker LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase --- diff --git a/src/crypto/internal/cryptotest/implementations.go b/src/crypto/internal/cryptotest/implementations.go index 2d922932b0..3fa7304590 100644 --- a/src/crypto/internal/cryptotest/implementations.go +++ b/src/crypto/internal/cryptotest/implementations.go @@ -7,6 +7,7 @@ package cryptotest import ( "crypto/internal/boring" "crypto/internal/impl" + "internal/goos" "internal/testenv" "testing" ) @@ -34,7 +35,9 @@ func TestAllImplementations(t *testing.T, pkg string, f func(t *testing.T)) { t.Run(name, f) } else { t.Run(name, func(t *testing.T) { - if testenv.Builder() != "" { + // Report an error if we're on Linux CI (assumed to be the most + // consistent) and the builder can't test this implementation. + if testenv.Builder() != "" && goos.GOOS == "linux" { if name == "SHA-NI" { t.Skip("known issue, see golang.org/issue/69592") }