summaryrefslogtreecommitdiffstats
path: root/tests/shell/run-tests.sh
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-15 17:32:36 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-16 14:43:37 +0200
commit54487b3657ef70f52eff8dc39c8630511541ca9f (patch)
treefc047372f9e5dc8b2acdf849e3db5263259765c7 /tests/shell/run-tests.sh
parentc5b5b1044fddcb24ab0cfb5f4447610d5d4f3d38 (diff)
tests/shell: colorize NFT_TEST_SKIP_/NFT_TEST_HAVE_ in test output
Having a "SKIP" option as "y" or a "HAVE" option as "n", is note worthy because tests may be skipped based on that. Colorize, to make it easier to see in the test output. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'tests/shell/run-tests.sh')
-rwxr-xr-xtests/shell/run-tests.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh
index 01a312d0..1527b2a6 100755
--- a/tests/shell/run-tests.sh
+++ b/tests/shell/run-tests.sh
@@ -571,11 +571,19 @@ msg_info "conf: NFT_TEST_SHUFFLE_TESTS=$NFT_TEST_SHUFFLE_TESTS"
msg_info "conf: TMPDIR=$(printf '%q' "$_TMPDIR")"
echo
for KEY in $(compgen -v | grep '^NFT_TEST_SKIP_' | sort) ; do
- msg_info "conf: $KEY=$(printf '%q' "${!KEY}")"
+ v="${!KEY}"
+ if [ "$v" = y ] ; then
+ v="$YELLOW$v$RESET"
+ fi
+ msg_info "conf: $KEY=$v"
export "$KEY"
done
for KEY in $(compgen -v | grep '^NFT_TEST_HAVE_' | sort) ; do
- msg_info "conf: $KEY=$(printf '%q' "${!KEY}")"
+ v="${!KEY}"
+ if [ "$v" = n ] ; then
+ v="$YELLOW$v$RESET"
+ fi
+ msg_info "conf: $KEY=$v"
export "$KEY"
done