ctdb-tests/integration: try_command_on_node() shouldn't lose onnode options
authorMartin Schwenke <martin@meltin.net>
Wed, 13 Nov 2013 03:13:52 +0000 (14:13 +1100)
committerMichael Adam <obnox@samba.org>
Wed, 27 Nov 2013 17:46:16 +0000 (18:46 +0100)
Currently it only passes the last (non -v) option seen.  It should
pass them all.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/tests/scripts/integration.bash

index 040a36048de110f4250c47722a20997ea8527389..7dbccbcbdef59a07c58e33fd07fd00eef5b022bc 100644 (file)
@@ -155,7 +155,7 @@ try_command_on_node ()
        if [ "$nodespec" = "-v" ] ; then
            verbose=true
        else
-           onnode_opts="$nodespec"
+           onnode_opts="${onnode_opts}${onnode_opts:+ }${nodespec}"
        fi
        nodespec="$1" ; shift
     done