Explorar o código

Add E2E requirement for integration tests

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Christopher Crone %!s(int64=7) %!d(string=hai) anos
pai
achega
d622e81af5
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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"
 	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)
 // Deprecated: use skip.IfCondition(t, !testEnv.DaemonInfo.ExperimentalBuild)
 func ExperimentalDaemon() bool {
 func ExperimentalDaemon() bool {
 	return testEnv.DaemonInfo.ExperimentalBuild
 	return testEnv.DaemonInfo.ExperimentalBuild