]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Add check for non-lmaster node status in integration tests
authorMartin Schwenke <martin@meltin.net>
Thu, 14 Jun 2018 19:51:17 +0000 (05:51 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Jul 2018 08:44:12 +0000 (10:44 +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>
(cherry picked from commit 4b008556d6b1f07fd5057af845526bf941497f18)

ctdb/tests/scripts/integration.bash

index b627c3e11628ee69f4f0b5b7f8c01e137e722594..dd84204e1a70392ebaee87ad94793c5c136e0011 100644 (file)
@@ -336,6 +336,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