소스 검색

Add E2E requirement for integration tests

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Christopher Crone 7 년 전
부모
커밋
d622e81af5
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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