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
$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" "$*"
{
local f="$1"
- [ -x "$f" ] || die "test \"$f\" is not executable"
tests_total=$(($tests_total + 1))
ctdb_test_run "$f" | tee "$tf" | show_progress