diff options
author | Martin Schwenke <martin@meltin.net> | 2012-06-14 19:37:39 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-07-26 22:03:00 +1000 |
commit | 867381486d25a8562090a3766ff8ec4836e1de50 (patch) | |
tree | 8d8fa65a878cc379524b82549b1b3172cba72707 /ctdb/tests/simple/18_ctdb_reloadips.sh | |
parent | c075c2e5c9c28e851096a16b99d53801c340140b (diff) | |
download | samba-867381486d25a8562090a3766ff8ec4836e1de50.tar.gz samba-867381486d25a8562090a3766ff8ec4836e1de50.tar.xz samba-867381486d25a8562090a3766ff8ec4836e1de50.zip |
tests/simple: ctdb reloadips test should use $test_ip
There's no point recalculating this value.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 6e7bd9685406ae024d413a5d9d8c6e0d89b15567)
Diffstat (limited to 'ctdb/tests/simple/18_ctdb_reloadips.sh')
-rwxr-xr-x | ctdb/tests/simple/18_ctdb_reloadips.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ctdb/tests/simple/18_ctdb_reloadips.sh b/ctdb/tests/simple/18_ctdb_reloadips.sh index e7b4e4d84a9..4822b935684 100755 --- a/ctdb/tests/simple/18_ctdb_reloadips.sh +++ b/ctdb/tests/simple/18_ctdb_reloadips.sh @@ -83,24 +83,23 @@ try_command_on_node any $CTDB sync select_test_node_and_ips -first_ip=${test_node_ips%% *} -echo "Removing IP $first_ip from node $test_node" +echo "Removing IP $test_ip from node $test_node" -try_command_on_node $test_node "mv $addresses $backup && grep -v '^${first_ip}/' $backup >$addresses" +try_command_on_node $test_node "mv $addresses $backup && grep -v '^${test_ip}/' $backup >$addresses" try_command_on_node any $CTDB reloadips -n all try_command_on_node $test_node $CTDB ip -if grep "^${first_ip} " <<<"$out" ; then +if grep "^${test_ip} " <<<"$out" ; then cat <<EOF -BAD: node $test_node can still host IP $first_ip: +BAD: node $test_node can still host IP $test_ip: $out EOF exit 1 fi cat <<EOF -GOOD: node $test_node is no longer hosting IP $first_ip: +GOOD: node $test_node is no longer hosting IP $test_ip: $out EOF |