From afec30c720ebbbb9b17f774255532bf5f9963004 Mon Sep 17 00:00:00 2001 From: Sen Lu Date: Thu, 28 Sep 2017 16:10:33 -0700 Subject: [PATCH] Abort if not default nor conformance --- test/e2e_node/runner/remote/run_remote.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/runner/remote/run_remote.go b/test/e2e_node/runner/remote/run_remote.go index e9ec14a6a30..f18a9c66691 100644 --- a/test/e2e_node/runner/remote/run_remote.go +++ b/test/e2e_node/runner/remote/run_remote.go @@ -45,7 +45,7 @@ import ( ) 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 zone = flag.String("zone", "", "gce zone the hosts live in") var project = flag.String("project", "", "gce project the hosts live in") @@ -150,9 +150,11 @@ func main() { case "conformance": suite = remote.InitConformanceRemote() // TODO: Add subcommand for node soaking, node conformance, cri validation. - default: + case "default": // Use node e2e suite by default if no subcommand is specified. suite = remote.InitNodeE2ERemote() + default: + glog.Fatalf("--test-suite must be one of default or conformance") } rand.Seed(time.Now().UTC().UnixNano())