From: Elias Naur Date: Thu, 2 May 2019 07:12:12 +0000 (-0400) Subject: net: skip DNS tests on self-hosted Android X-Git-Tag: go1.13beta1~428 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9f513254ae92e2a62c3197cf16f7f22a8ca2879a;p=gostls13.git net: skip DNS tests on self-hosted Android They were already skipped on tethered Android builders because the tests are gated on GO_BUILDER_NAME being set and the Android exec wrapper does not propagate GO_BUILDER_NAME. Updates #31722 Change-Id: Ifd2c7daecc19a4e540d86d1f38083f43cc3e6b15 Reviewed-on: https://go-review.googlesource.com/c/go/+/175177 Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/dial_test.go b/src/net/dial_test.go index 3646ab9815..1bf96fd3ce 100644 --- a/src/net/dial_test.go +++ b/src/net/dial_test.go @@ -973,11 +973,11 @@ func TestDialerControl(t *testing.T) { } // mustHaveExternalNetwork is like testenv.MustHaveExternalNetwork -// except that it won't skip testing on non-iOS builders. +// except that it won't skip testing on non-mobile builders. func mustHaveExternalNetwork(t *testing.T) { t.Helper() - ios := runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") - if testenv.Builder() == "" || ios { + mobile := runtime.GOOS == "android" || runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") + if testenv.Builder() == "" || mobile { testenv.MustHaveExternalNetwork(t) } }