From: Martin Schwenke Date: Sun, 13 Oct 2019 23:15:07 +0000 (+1100) Subject: ctdb-tests: Simplify tool unit test runner X-Git-Tag: talloc-2.3.1~263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8461b422d94b836eb952a3a5363cf03eb347e95;p=thirdparty%2Fsamba.git ctdb-tests: Simplify tool unit test runner There is no good reason why the code needs to be this way. The intervening code was removed years ago leaving a more complex version of something very simple. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/UNIT/tool/scripts/local.sh b/ctdb/tests/UNIT/tool/scripts/local.sh index 61313504f11..53ddccf4f5b 100644 --- a/ctdb/tests/UNIT/tool/scripts/local.sh +++ b/ctdb/tests/UNIT/tool/scripts/local.sh @@ -103,9 +103,7 @@ setup_nodes () simple_test_other () { - (unit_test $CTDB -d $CTDB_DEBUGLEVEL "$@") - status=$? - [ $status -eq 0 ] || exit $status + unit_test $CTDB -d $CTDB_DEBUGLEVEL "$@" } simple_test ()