git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77db0b1
)
ctdb-tests: Add check for non-lmaster node status in integration tests
author
Martin Schwenke
<martin@meltin.net>
Thu, 14 Jun 2018 19:51:17 +0000
(
05:51
+1000)
committer
Martin Schwenke
<martins@samba.org>
Mon, 2 Jul 2018 06:51:22 +0000
(08:51 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13499
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash
patch
|
blob
|
history
diff --git
a/ctdb/tests/scripts/integration.bash
b/ctdb/tests/scripts/integration.bash
index 0d5a5513e12627b7d8e7f8c3ceed9acc1b9402f7..96762813b74736d68c6db1abf5d5df248dfd36da 100644
(file)
--- a/
ctdb/tests/scripts/integration.bash
+++ b/
ctdb/tests/scripts/integration.bash
@@
-341,6
+341,7
@@
node_has_status ()
(frozen) fpat='^[[:space:]]+frozen[[:space:]]+1$' ;;
(unfrozen) fpat='^[[:space:]]+frozen[[:space:]]+0$' ;;
(recovered) rpat='^Recovery mode:RECOVERY \(1\)$' ;;
+ (notlmaster) rpat="^hash:.* lmaster:${pnn}\$" ;;
*)
echo "node_has_status: unknown status \"$status\""
return 1