mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Abort if not default nor conformance
This commit is contained in:
parent
69df66c738
commit
afec30c720
@ -45,7 +45,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var testArgs = flag.String("test_args", "", "Space-separated list of arguments to pass to Ginkgo test runner.")
|
var testArgs = flag.String("test_args", "", "Space-separated list of arguments to pass to Ginkgo test runner.")
|
||||||
var testSuite = flag.String("test-suite", "", "Test suite the runner initializes with.")
|
var testSuite = flag.String("test-suite", "default", "Test suite the runner initializes with. Currently support default|conformance")
|
||||||
var instanceNamePrefix = flag.String("instance-name-prefix", "", "prefix for instance names")
|
var instanceNamePrefix = flag.String("instance-name-prefix", "", "prefix for instance names")
|
||||||
var zone = flag.String("zone", "", "gce zone the hosts live in")
|
var zone = flag.String("zone", "", "gce zone the hosts live in")
|
||||||
var project = flag.String("project", "", "gce project the hosts live in")
|
var project = flag.String("project", "", "gce project the hosts live in")
|
||||||
@ -150,9 +150,11 @@ func main() {
|
|||||||
case "conformance":
|
case "conformance":
|
||||||
suite = remote.InitConformanceRemote()
|
suite = remote.InitConformanceRemote()
|
||||||
// TODO: Add subcommand for node soaking, node conformance, cri validation.
|
// TODO: Add subcommand for node soaking, node conformance, cri validation.
|
||||||
default:
|
case "default":
|
||||||
// Use node e2e suite by default if no subcommand is specified.
|
// Use node e2e suite by default if no subcommand is specified.
|
||||||
suite = remote.InitNodeE2ERemote()
|
suite = remote.InitNodeE2ERemote()
|
||||||
|
default:
|
||||||
|
glog.Fatalf("--test-suite must be one of default or conformance")
|
||||||
}
|
}
|
||||||
|
|
||||||
rand.Seed(time.Now().UTC().UnixNano())
|
rand.Seed(time.Now().UTC().UnixNano())
|
||||||
|
Loading…
Reference in New Issue
Block a user