summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-03-03 17:48:40 +1100
committerAmitay Isaacs <amitay@samba.org>2020-03-10 07:37:34 +0000
commit30180ef6c280a7aa3d683ae33877daa60ce6b3dd (patch)
treeb1f0e022762d76ccce831d54268a894aad248619 /ctdb/tests
parent77f6977102e07286810a1f8420e63048183cfe22 (diff)
downloadsamba-30180ef6c280a7aa3d683ae33877daa60ce6b3dd.tar.gz
ctdb-tests: Use ctdb_test_skip() when shellcheck is not installed
When the tests are run interactively this will make it more noticeable that shellcheck is not installed because the test summary will indicate missing tests. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests')
-rw-r--r--ctdb/tests/UNIT/shellcheck/scripts/local.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/UNIT/shellcheck/scripts/local.sh b/ctdb/tests/UNIT/shellcheck/scripts/local.sh
index 84019144009..6bc93fd9146 100644
--- a/ctdb/tests/UNIT/shellcheck/scripts/local.sh
+++ b/ctdb/tests/UNIT/shellcheck/scripts/local.sh
@@ -31,7 +31,7 @@ shellcheck_test ()
_excludes="SC1090,SC1091,SC2162,SC2164"
unit_test shellcheck --exclude="$_excludes" "$@"
else
- echo "WARNING: shellcheck not installed, skipping test"
+ ctdb_test_skip "shellcheck not installed"
unit_test true
fi
}