From: Martin Schwenke Date: Tue, 13 Aug 2019 11:43:32 +0000 (+1000) Subject: ctdb-tests: try_command_on_node() should return status of command X-Git-Tag: talloc-2.3.1~491 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38b838b59cbece5c6a7bda40e8d411a6c56d1458;p=thirdparty%2Fsamba.git ctdb-tests: try_command_on_node() should return status of command There is no point folding this down to 1. Tests should be able to see the original value, if required. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 51eceb59dc6..52830ff9703 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -124,7 +124,7 @@ try_command_on_node () if [ $status -ne 0 ] ; then echo "Failed to execute \"$cmd\" on node(s) \"$nodespec\"" cat "$outfile" - return 1 + return $status fi if $verbose ; then