Ver código fonte

Add E2E requirement for integration tests

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Christopher Crone 7 anos atrás
pai
commit
d622e81af5
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      integration-cli/requirements_test.go

+ 8 - 0
integration-cli/requirements_test.go

@@ -36,6 +36,14 @@ func DaemonIsLinux() bool {
 	return testEnv.DaemonInfo.OSType == "linux"
 }
 
+func E2E() bool {
+	return os.Getenv("DOCKER_E2E") != ""
+}
+
+func NotE2E() bool {
+	return !E2E()
+}
+
 // Deprecated: use skip.IfCondition(t, !testEnv.DaemonInfo.ExperimentalBuild)
 func ExperimentalDaemon() bool {
 	return testEnv.DaemonInfo.ExperimentalBuild