summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-14 16:45:14 +0000
committerGitHub <noreply@github.com>2022-06-14 16:45:14 +0000
commitea18b9463e9da9adee194c0a1142b8d55b33c9fe (patch)
treeb5569b6504b42cb2ef25f251e061025d20434eb2
parentcffed099b8404fa7f136643116020edac2336155 (diff)
parent232b3e342a6fdf14c22dab679a330aa32d8d2829 (diff)
downloadpodman-ea18b9463e9da9adee194c0a1142b8d55b33c9fe.tar.gz
podman-ea18b9463e9da9adee194c0a1142b8d55b33c9fe.tar.bz2
podman-ea18b9463e9da9adee194c0a1142b8d55b33c9fe.zip
Merge pull request #14581 from edsantiago/bud_test_check_skip_syntax
buildah-bud tests: add arg sanity check
-rwxr-xr-xtest/buildah-bud/apply-podman-deltas7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/buildah-bud/apply-podman-deltas b/test/buildah-bud/apply-podman-deltas
index 02a8fc222..0bde060ed 100755
--- a/test/buildah-bud/apply-podman-deltas
+++ b/test/buildah-bud/apply-podman-deltas
@@ -61,7 +61,12 @@ function _skip() {
local skip=$1; shift
local reason=$1; shift
- # All further arguments are test names
+ # All further arguments are test names. Make sure we're invoked with some!
+ if [[ -z "$*" ]]; then
+ echo "$ME: FATAL: Invalid use of '${FUNCNAME[1]}' at line ${BASH_LINENO[1]}: missing test-name argument(s)." >&2
+ exit 1
+ fi
+
for t in "$@"; do
if fgrep -qx "@test \"$t\" {" $BUD; then
$ECHO "@test \"$t\" : $skip \"$reason\""