1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

ctdb-tests: Continue running if a testcase is not executable

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Jun  5 20:37:15 CEST 2018 on sn-devel-144
This commit is contained in:
Martin Schwenke 2018-05-18 11:44:11 +10:00 committed by Amitay Isaacs
parent f1d07908e2
commit f2e8ab3f02

View File

@ -142,7 +142,12 @@ ctdb_test_run ()
$no_header || ctdb_test_begin "$name"
local status=0
timeout $TEST_TIMEOUT "$@" || status=$?
if [ -x "$1" ] ; then
timeout $TEST_TIMEOUT "$@" || status=$?
else
echo "TEST IS NOT EXECUTABLE"
status=1
fi
$no_header || ctdb_test_end "$name" "$status" "$*"
@ -186,7 +191,6 @@ run_one_test ()
{
local f="$1"
[ -x "$f" ] || die "test \"$f\" is not executable"
tests_total=$(($tests_total + 1))
ctdb_test_run "$f" | tee "$tf" | show_progress