ctdb-tests: try_command_on_node() should return status of command
authorMartin Schwenke <martin@meltin.net>
Tue, 13 Aug 2019 11:43:32 +0000 (21:43 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 4 Oct 2019 09:41:28 +0000 (09:41 +0000)
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash

index 51eceb59dc62e22624b32fa045930ca56684ce29..52830ff9703043eee946f4dc446d56ff5dd20e94 100644 (file)
@@ -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