Browse Source

Merge pull request #41597 from cpuguy83/gocache

Pass through GOCACHE to test_env
Sebastiaan van Stijn 4 years ago
parent
commit
a66aa12f69
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hack/make/.integration-test-helpers

+ 2 - 0
hack/make/.integration-test-helpers

@@ -16,6 +16,7 @@ source "${MAKEDIR}/.go-autogen"
 : "${TEST_REPEAT:=1}"
 : "${TESTFLAGS:=}"
 : "${TESTDEBUG:=}"
+: "${GOCACHE:=$(go env GOCACHE)}"
 
 setup_integration_test_filter() {
 	if [ -z "${TEST_FILTER}" ]; then
@@ -149,6 +150,7 @@ test_env() {
 			DOCKER_REMOTE_DAEMON="$DOCKER_REMOTE_DAEMON" \
 			DOCKER_ROOTLESS="$DOCKER_ROOTLESS" \
 			DOCKERFILE="$DOCKERFILE" \
+			GOCACHE="$GOCACHE" \
 			GOPATH="$GOPATH" \
 			GOTRACEBACK=all \
 			HOME="$ABS_DEST/fake-HOME" \