mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #29038 from mml/e2e-federation-env
Automatic merge from submit-queue Only run federation tests if FEDERATION==true.
This commit is contained in:
commit
e60df08532
@ -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)...))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user