Pārlūkot izejas kodu

Merge pull request #19462 from tophj-ibm/fix-arm-integration-cli-requirement

Fix test requirement for ARM
Jess Frazelle 9 gadi atpakaļ
vecāks
revīzija
389784abe1
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 0
      hack/make.sh
  2. 1 1
      integration-cli/requirements.go

+ 1 - 0
hack/make.sh

@@ -211,6 +211,7 @@ test_env() {
 	# use "env -i" to tightly control the environment variables that bleed into the tests
 	# use "env -i" to tightly control the environment variables that bleed into the tests
 	env -i \
 	env -i \
 		DEST="$DEST" \
 		DEST="$DEST" \
+		DOCKER_ENGINE_GOARCH="$DOCKER_ENGINE_GOARCH" \
 		DOCKER_GRAPHDRIVER="$DOCKER_GRAPHDRIVER" \
 		DOCKER_GRAPHDRIVER="$DOCKER_GRAPHDRIVER" \
 		DOCKER_USERLANDPROXY="$DOCKER_USERLANDPROXY" \
 		DOCKER_USERLANDPROXY="$DOCKER_USERLANDPROXY" \
 		DOCKER_HOST="$DOCKER_HOST" \
 		DOCKER_HOST="$DOCKER_HOST" \

+ 1 - 1
integration-cli/requirements.go

@@ -30,7 +30,7 @@ var (
 		"Test requires a Linux daemon",
 		"Test requires a Linux daemon",
 	}
 	}
 	NotArm = testRequirement{
 	NotArm = testRequirement{
-		func() bool { return os.Getenv("DOCKER_ENGINE_GOARCH") == "arm" },
+		func() bool { return os.Getenv("DOCKER_ENGINE_GOARCH") != "arm" },
 		"Test requires a daemon not running on ARM",
 		"Test requires a daemon not running on ARM",
 	}
 	}
 	SameHostDaemon = testRequirement{
 	SameHostDaemon = testRequirement{