diff --git a/hack/e2e.go b/hack/e2e.go index b313434eb3e..869da29e36e 100644 --- a/hack/e2e.go +++ b/hack/e2e.go @@ -193,14 +193,13 @@ func Test() bool { ValidateClusterSize() } - if os.Getenv("FEDERATION") == "" { - return finishRunning("Ginkgo tests", exec.Command(filepath.Join(*root, "hack/ginkgo-e2e.sh"), strings.Fields(*testArgs)...)) - } else { - + if os.Getenv("FEDERATION") == "true" { if *testArgs == "" { *testArgs = "--ginkgo.focus=\\[Feature:Federation\\]" } return finishRunning("Federated Ginkgo tests", exec.Command(filepath.Join(*root, "hack/federated-ginkgo-e2e.sh"), strings.Fields(*testArgs)...)) + } else { + return finishRunning("Ginkgo tests", exec.Command(filepath.Join(*root, "hack/ginkgo-e2e.sh"), strings.Fields(*testArgs)...)) } }