Skip to content

Commit bd77aa9

Browse files
committed
hack/test-integration.sh: provide a recommended command and exit
1 parent 98f5c36 commit bd77aa9

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

hack/test-integration.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,12 @@ set -o pipefail
2222

2323
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
2424

25-
# For help output
26-
ARGHELP=""
27-
if [[ "$#" -gt 0 ]]; then
28-
ARGHELP="WHAT='$@'"
29-
fi
30-
31-
echo "NOTE: $0 has been replaced by 'make test-integration'"
25+
echo "$0 has been replaced by 'make test-integration'"
3226
echo
33-
echo "The equivalent of this invocation is: "
34-
echo " make test-integration ${ARGHELP}"
27+
echo "The following invocation will run all integration tests: "
28+
echo ' make test-integration'
3529
echo
30+
echo "The following invocation will run a specific test with the verbose flag set: "
31+
echo ' make test-integration WHAT=./test/integration/pods KUBE_GOFLAGS="-v" KUBE_TEST_ARGS="-run ^TestPodUpdateActiveDeadlineSeconds$"'
3632
echo
37-
make --no-print-directory -C "${KUBE_ROOT}" test-integration WHAT="$*"
38-
33+
exit 1

0 commit comments

Comments
 (0)