From 63ff364207e0a5e6f1e03ce118e8ab354df00e23 Mon Sep 17 00:00:00 2001 From: Trevor McCasland Date: Mon, 31 Oct 2016 12:20:22 -0500 Subject: [PATCH] trovestack: Better error message for missing arg Instead of assuming the user knows to specify a datastore for kick-start and run-ci, we should throw an error and provide guidance on what to do. Change-Id: I5d4f73ff891df948f95f8dc2e3faae7c93a9f247 --- integration/scripts/trovestack | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/integration/scripts/trovestack b/integration/scripts/trovestack index f1ca8b74ac..b1a4759a60 100755 --- a/integration/scripts/trovestack +++ b/integration/scripts/trovestack @@ -1095,6 +1095,12 @@ function cmd_vagrant_ssh() { function cmd_run_ci() { exclaim "Running CI suite..." + + if [ -z $1 ]; then + exclaim "Datastore argument was not specified." + exit 1 + fi + set +e cmd_stop_deps cmd_stop @@ -1207,6 +1213,11 @@ function cmd_clean() { } function cmd_kick_start() { + if [ -z $1 ]; then + exclaim "Datastore argument was not specified." + exit 1 + fi + cmd_test_init $1 cmd_build_and_upload_image $1 }