aboutsummaryrefslogtreecommitdiff
path: root/src/internal/testenv/testenv_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/testenv/testenv_test.go')
-rw-r--r--src/internal/testenv/testenv_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/testenv/testenv_test.go b/src/internal/testenv/testenv_test.go
index d748e41540..ce3b3b953b 100644
--- a/src/internal/testenv/testenv_test.go
+++ b/src/internal/testenv/testenv_test.go
@@ -97,7 +97,7 @@ func TestHasGoBuild(t *testing.T) {
}
}
- if strings.HasSuffix(b, "-noopt") {
+ if strings.Contains(b, "-noopt") {
// The -noopt builder sets GO_GCFLAGS, which causes tests of 'go build' to
// be skipped.
t.Logf("HasGoBuild is false on %s", b)