Skip to content

Commit

Permalink
Merge pull request kubernetes#29038 from mml/e2e-federation-env
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Only run federation tests if FEDERATION==true.
  • Loading branch information
k8s-merge-robot authored Jul 16, 2016
2 parents 5e1b75d + c342d8f commit e60df08
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hack/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)...))
}
}

Expand Down

0 comments on commit e60df08

Please sign in to comment.