Page MenuHomeFreeBSD

vnet tests: check for if_bridge.ko
ClosedPublic

Authored by kp on Jun 4 2024, 8:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 26, 10:37 PM
Unknown Object (File)
Nov 23 2024, 6:07 PM
Unknown Object (File)
Nov 21 2024, 4:50 AM
Unknown Object (File)
Nov 4 2024, 10:44 AM
Unknown Object (File)
Nov 4 2024, 10:43 AM
Unknown Object (File)
Nov 4 2024, 10:43 AM
Unknown Object (File)
Nov 4 2024, 10:27 AM
Unknown Object (File)
Oct 29 2024, 4:25 AM

Details

Summary

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.

MFC after: 1 week
Event: Kitchener-Waterloo Hackathon 202406

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Jun 4 2024, 8:02 PM
tests/sys/common/vnet.subr
34

This isn't vnet-specific so it's a bit strange to put it here, but obviously that applies to other things that are already here.

This revision is now accepted and ready to land.Jun 4 2024, 8:09 PM
tests/sys/common/vnet.subr
34

The functions are all intended for use with the vnet-based network tests, so that's where the name came from.
I think that that's also still the only way they're actually used.

This revision was automatically updated to reflect the committed changes.