mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
d71a00e9f5
commit
f427703f16
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue