aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-08-25 10:17:15 -0400
committerGitHub <noreply@github.com>2023-08-25 10:17:15 -0400
commitdd9f816b29560af728928ea74898203f3efa3fd8 (patch)
treef2d215ecc8423bd17b4f85800947f42e86a9c494
parentcbd89568cab68fa37e5bb67e8a59667b17d644bb (diff)
parent3b3822ea1ddf34f8fcb44c67cda2b778b5b41a34 (diff)
Merge pull request #8661 from hercules-ci/test-reformat-error-message
tests: Reformat exit code error message
-rw-r--r--tests/common/vars-and-functions.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common/vars-and-functions.sh.in b/tests/common/vars-and-functions.sh.in
index dc7ce13cc..8f9ec4b1a 100644
--- a/tests/common/vars-and-functions.sh.in
+++ b/tests/common/vars-and-functions.sh.in
@@ -195,7 +195,7 @@ expect() {
shift
"$@" && res=0 || res="$?"
if [[ $res -ne $expected ]]; then
- echo "Expected '$expected' but got '$res' while running '${*@Q}'" >&2
+ echo "Expected exit code '$expected' but got '$res' from command ${*@Q}" >&2
return 1
fi
return 0
@@ -209,7 +209,7 @@ expectStderr() {
shift
"$@" 2>&1 && res=0 || res="$?"
if [[ $res -ne $expected ]]; then
- echo "Expected '$expected' but got '$res' while running '${*@Q}'" >&2
+ echo "Expected exit code '$expected' but got '$res' from command ${*@Q}" >&2
return 1
fi
return 0