tests: select_test_node_and_ips() should never select non-node -1
authorMartin Schwenke <martin@meltin.net>
Thu, 14 Jun 2012 09:36:04 +0000 (19:36 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 26 Jul 2012 12:03:00 +0000 (22:03 +1000)
commitc075c2e5c9c28e851096a16b99d53801c340140b
tree60d4b2280f6ab4264cad01214238083d46ce949a
parentc44a97dfa14d5a702aebbe54906bca87dbdc3b93
tests:  select_test_node_and_ips() should never select non-node -1

Instead of selecting the 1st pnn found, select the 1st one that isn't -1.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f02e501342112aab67aee95f253e29a670b29273)
ctdb/tests/scripts/integration.bash