From 01a46205c3a3d6609dc0b0324319b89667dffa32 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 24 Oct 2013 14:15:53 +1100 Subject: [PATCH] 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 onnode test fixup Signed-off-by: Martin Schwenke --- tests/onnode/0070.sh | 10 +++++----- tests/onnode/0071.sh | 13 ++++++------- tests/onnode/0075.sh | 10 +++++----- tools/onnode | 4 ++-- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/tests/onnode/0070.sh b/tests/onnode/0070.sh index 902d78b2..b071e80a 100755 --- a/tests/onnode/0070.sh +++ b/tests/onnode/0070.sh @@ -7,11 +7,11 @@ cmd="$ONNODE ok hostname" define_test "$cmd" "all nodes OK" ctdb_set_output <