summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-04-13 12:05:59 +1000
committerMartin Schwenke <martin@meltin.net>2012-04-16 15:02:49 +1000
commit1d7f023f1a99b56b09917b8e525dd770835f317a (patch)
tree79072ecdf3ec3f57a808da7b3379fc75f964194f
parent8e71c5ec902544e4c1941098cd2864a56a03dc94 (diff)
downloadsamba-1d7f023f1a99b56b09917b8e525dd770835f317a.tar.gz
samba-1d7f023f1a99b56b09917b8e525dd770835f317a.tar.xz
samba-1d7f023f1a99b56b09917b8e525dd770835f317a.zip
tests/tool: Fix the nodestatus test
Although not obvious, when asking each node for nodestatus, it will report each node is the current node. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a65ba7211ec7f102b32060b173606a61fb5c20a9)
-rwxr-xr-xctdb/tests/tool/testcases/stubby.nodestatus.004.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctdb/tests/tool/testcases/stubby.nodestatus.004.sh b/ctdb/tests/tool/testcases/stubby.nodestatus.004.sh
index 6f5193f643..0679f62aa6 100755
--- a/ctdb/tests/tool/testcases/stubby.nodestatus.004.sh
+++ b/ctdb/tests/tool/testcases/stubby.nodestatus.004.sh
@@ -4,8 +4,11 @@
define_test "-n all, 3 nodes, 1 disconnected"
+# -n all asks each node for the node status and
+# thus reports THIS NODE for each node
+
required_result 0 <<EOF
-pnn:0 192.168.20.41 OK
+pnn:0 192.168.20.41 OK (THIS NODE)
pnn:2 192.168.20.43 OK (THIS NODE)
EOF