Browse code

Add E2E requirement for integration tests

Signed-off-by: Christopher Crone <christopher.crone@docker.com>

Christopher Crone authored on 2017/09/08 23:44:19
Showing 1 changed files
... ...
@@ -36,6 +36,14 @@ func DaemonIsLinux() bool {
36 36
 	return testEnv.DaemonInfo.OSType == "linux"
37 37
 }
38 38
 
39
+func E2E() bool {
40
+	return os.Getenv("DOCKER_E2E") != ""
41
+}
42
+
43
+func NotE2E() bool {
44
+	return !E2E()
45
+}
46
+
39 47
 // Deprecated: use skip.IfCondition(t, !testEnv.DaemonInfo.ExperimentalBuild)
40 48
 func ExperimentalDaemon() bool {
41 49
 	return testEnv.DaemonInfo.ExperimentalBuild