tools/onnode: Fix healthy/ok node handling
authorMartin Schwenke <martin@meltin.net>
Thu, 24 Oct 2013 03:15:53 +0000 (14:15 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 29 Oct 2013 06:14:55 +0000 (17:14 +1100)
commit01a46205c3a3d6609dc0b0324319b89667dffa32
tree420fd23dfba82dba3aa71e216934c3706d2b9c02
parent56486d1c01cc8ad0e4b8cee7a22429e72e50f03d
tools/onnode: Fix healthy/ok node handling

This bit-rotted a long time ago when the "ThisNode" column was added
to "ctdb -Y status" output.  The fake "ctdb -Y status" output in the
test was never updated to reflect this change.

Instead of making sure that all columns are "0", just check that
they're not "1".  This implicitly ignores "Y" and "N" in this
"ThisNode" column without having to do anything else clever.

Also update associated tests.  The main "ctdb ok" test had a duplicate
opening line for a here document, which was tickled by this change.

This fixes samba bz#8122.

Signed-off-by: Martin Schwenke <martin@meltin.net>
onnode test fixup

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/onnode/0070.sh
tests/onnode/0071.sh
tests/onnode/0075.sh
tools/onnode