ctdb-tests: Simplify tool unit test runner
authorMartin Schwenke <martin@meltin.net>
Sun, 13 Oct 2019 23:15:07 +0000 (10:15 +1100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 19:39:40 +0000 (19:39 +0000)
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/tool/scripts/local.sh

index 61313504f119cb27f8f6fff0cba27bda22ad996e..53ddccf4f5bb8e7295dc3dc8e974c0f9d04ebf53 100644 (file)
@@ -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 ()