Modules such as the SCTP kernel module may not be available on all CI environments.
Signed-off-by: Xavier Simonart <[email protected]> --- tests/system-common-macros.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 6206bbb96..8c0296528 100644 --- a/tests/system-common-macros.at +++ b/tests/system-common-macros.at @@ -210,12 +210,13 @@ m4_define([OVS_CHECK_CT_ZERO_SNAT], # # Tries to load specified kernel module and removes it after # if it wasn't loaded before this call. +# Skips the test if the module cannot be loaded. # m4_define([LOAD_MODULE], [if ! lsmod | grep -q $1; then on_exit 'modprobe -q -r $1' fi - AT_CHECK([modprobe $1]) + AT_SKIP_IF([! modprobe $1]) ] ) -- 2.47.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
