From b558d200fe60c3351b70f7280ece8e8569381f6f Mon Sep 17 00:00:00 2001 From: Foo Date: Sat, 2 Dec 2017 18:24:01 +0300 Subject: [PATCH] Only shift if verb was supplied --- tests/shlib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shlib/common.sh b/tests/shlib/common.sh index 1faa3333..5edf86b8 100644 --- a/tests/shlib/common.sh +++ b/tests/shlib/common.sh @@ -56,7 +56,7 @@ fail() { local test_name="$1" ; shift local fail_char="$allow_failure$1" ; shift local message="$1" ; shift - local verb="${1:-Failed}" ; shift + local verb="${1:-Failed}" ; test $# -ge 1 && shift local full_msg="$fail_char $POWERLINE_CURRENT_SUITE|$test_name :: $message" FAIL_SUMMARY="${FAIL_SUMMARY}${NL}${full_msg}" echo "$verb: $full_msg"