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

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

This reverts commit 36e7043fb16ac996793545022147f696caedee9c.

An recent change broke this and I forgot to test before posting. :-(

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-05-18 11:39:49 +10:00 committed by Amitay Isaacs
parent 4bdf97a935
commit f1d07908e2

View File

@ -29,12 +29,6 @@ die ()
echo "$1" >&2 ; exit ${2:-1}
}
# Print a message and return failure
fail ()
{
echo "$1" >&2 ; return ${2:-1}
}
######################################################################
with_summary=true
@ -192,13 +186,10 @@ run_one_test ()
{
local f="$1"
[ -x "$f" ] || die "test \"$f\" is not executable"
tests_total=$(($tests_total + 1))
if [ -x "$f" ] ; then
ctdb_test_run "$f" | tee "$tf" | show_progress
else
ctdb_test_run "$f" fail "TEST NOT EXECUTABLE"
fi
ctdb_test_run "$f" | tee "$tf" | show_progress
status=$?
if [ $status -eq 0 ] ; then
tests_passed=$(($tests_passed + 1))