summaryrefslogtreecommitdiff
path: root/ctdb/tests/tool/ctdb.status.001.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/tool/ctdb.status.001.sh')
-rwxr-xr-xctdb/tests/tool/ctdb.status.001.sh32
1 files changed, 17 insertions, 15 deletions
diff --git a/ctdb/tests/tool/ctdb.status.001.sh b/ctdb/tests/tool/ctdb.status.001.sh
index 48b5bac24a9..28f93eaa33e 100755
--- a/ctdb/tests/tool/ctdb.status.001.sh
+++ b/ctdb/tests/tool/ctdb.status.001.sh
@@ -4,21 +4,7 @@
define_test "all, 3 nodes, all ok"
-required_result 0 <<EOF
-Number of nodes:3
-pnn:0 192.168.20.41 OK (THIS NODE)
-pnn:1 192.168.20.42 OK
-pnn:2 192.168.20.43 OK
-Generation:654321
-Size:3
-hash:0 lmaster:0
-hash:1 lmaster:1
-hash:2 lmaster:2
-Recovery mode:NORMAL (0)
-Recovery master:0
-EOF
-
-simple_test all <<EOF
+setup_ctdbd <<EOF
NODEMAP
0 192.168.20.41 0x0 CURRENT RECMASTER
1 192.168.20.42 0x0
@@ -35,3 +21,19 @@ VNNMAP
1
2
EOF
+
+required_result 0 <<EOF
+Number of nodes:3
+pnn:0 192.168.20.41 OK (THIS NODE)
+pnn:1 192.168.20.42 OK
+pnn:2 192.168.20.43 OK
+Generation:654321
+Size:3
+hash:0 lmaster:0
+hash:1 lmaster:1
+hash:2 lmaster:2
+Recovery mode:NORMAL (0)
+Recovery master:0
+EOF
+
+simple_test all