From fe0ff1cb68c4a340ec46e109a44a2e7d513db500 Mon Sep 17 00:00:00 2001 From: Christopher Crone Date: Fri, 8 Sep 2017 16:44:19 +0200 Subject: [PATCH] Add E2E requirement for integration tests Signed-off-by: Christopher Crone Upstream-commit: d622e81af50f4690d5867a89b430d1b94707fd26 Component: engine --- components/engine/integration-cli/requirements_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/engine/integration-cli/requirements_test.go b/components/engine/integration-cli/requirements_test.go index 0b10969996..c41a71fa29 100644 --- a/components/engine/integration-cli/requirements_test.go +++ b/components/engine/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