From bd77aa9ae5bed019a5906c8dd9aba72521a5fe96 Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Fri, 17 Feb 2017 08:41:06 -0800 Subject: [PATCH] hack/test-integration.sh: provide a recommended command and exit --- hack/test-integration.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/hack/test-integration.sh b/hack/test-integration.sh index 7e3b3ed8970..57f4eead099 100755 --- a/hack/test-integration.sh +++ b/hack/test-integration.sh @@ -22,17 +22,12 @@ set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. -# For help output -ARGHELP="" -if [[ "$#" -gt 0 ]]; then - ARGHELP="WHAT='$@'" -fi - -echo "NOTE: $0 has been replaced by 'make test-integration'" +echo "$0 has been replaced by 'make test-integration'" echo -echo "The equivalent of this invocation is: " -echo " make test-integration ${ARGHELP}" +echo "The following invocation will run all integration tests: " +echo ' make test-integration' echo +echo "The following invocation will run a specific test with the verbose flag set: " +echo ' make test-integration WHAT=./test/integration/pods KUBE_GOFLAGS="-v" KUBE_TEST_ARGS="-run ^TestPodUpdateActiveDeadlineSeconds$"' echo -make --no-print-directory -C "${KUBE_ROOT}" test-integration WHAT="$*" - +exit 1