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)
committerMartin Schwenke <martin@meltin.net>
Thu, 14 Nov 2013 03:42:29 +0000 (14:42 +1100)
Currently it only passes the last (non -v) option seen.  It should
pass them all.

Signed-off-by: Martin Schwenke <martin@meltin.net>
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