selftests: openvswitch: Attempt to autoload module.
authorAaron Conole <aconole@redhat.com>
Tue, 2 Jul 2024 13:28:29 +0000 (09:28 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jul 2024 02:29:15 +0000 (19:29 -0700)
commit818481db3df41e58396d13fd9fad77542a0706be
tree117dc5a4455375703a94fe5f31644b0f397fc116
parentff015706fc7385c51e8418ced2484b98b239a3a8
selftests: openvswitch: Attempt to autoload module.

Previously, the openvswitch.sh test suites would not attempt to autoload
the openvswitch module.  The idea was that a user who is manually running
tests might not even have the OVS module loaded or configured for their
own development.  However, if the kernel module is configured, and the
module can be autoloaded then we should just attempt to load it and run
the tests.  This is especially true in the CI environments, where the CI
tests should be able to rely on auto loading to get the test suite running.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240702132830.213384-3-aconole@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/openvswitch/openvswitch.sh