HomeFreeBSD

vnet tests: check for if_bridge.ko

Description

vnet tests: check for if_bridge.ko

A number of tests create a bridge, but did not check if if_bridge.ko is loaded.

We usually get away with that, because ifconfig bridge create autoloads the
module, but if we run the tests in a jail (e.g. because of kyua's upcoming
execenv.jail.params feature) we can't load the module and these tests can fail.

Check if the module is loaded, skip the test if it is not.

Reviewed by: markj
MFC after: 1 week
Event: Kitchener-Waterloo Hackathon 202406
Differential Revision: https://reviews.freebsd.org/D45487

Details

Provenance
kpAuthored on Tue, Jun 4, 6:02 PM
Reviewer
markj
Differential Revision
D45487: vnet tests: check for if_bridge.ko
Parents
rG05704402ac85: bhyve: Add a stub VM_EXITCODE_REG_EMUL handler
Branches
Unknown
Tags
Unknown