carp tests: ensure exactly one jail is master
Verify that we only have one master, not two. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
c6582381a7
commit
609c94016f
@ -46,6 +46,11 @@ wait_for_carp()
|
||||
[ -z "$(is_master ${jail2} ${itf2})" ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
if [ -n "$(is_master ${jail1} ${itf1})" ] &&
|
||||
[ -n "$(is_master ${jail2} ${itf2})" ]; then
|
||||
atf_fail "Both jails are master"
|
||||
fi
|
||||
}
|
||||
|
||||
carp_init()
|
||||
|
Loading…
Reference in New Issue
Block a user