pf tests: altq:codel_bridge requires if_bridge

Check that the bridge module is loaded before running this test.
It likely will be (as a result of running the bridge tests), but if it's
not we'll get spurious failures.

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2021-09-01 16:09:14 +02:00
parent 312d49ef7a
commit d491b42535

View File

@ -156,6 +156,9 @@ codel_bridge_body()
{
altq_init
is_altq_supported codel
if ! kldstat -q -m if_bridge; then
atf_skip "This test requires if_bridge"
fi
epair=$(vnet_mkepair)
ifconfig ${epair}a 192.0.2.1/24 up