With 'netfilter: remove nf_conntrack_helper sysctl toggle' applied, the
nf_conntrack_helper sysctl knob is removed.  The testsuite has been forcibly
disabling this knob anyway, but the use of sysctl will still error out
on an invalid key.  By adding 'e' flag, sysctl command will ignore missing
keys.

Ref: https://lists.linuxfoundation.org/pipermail/ovs-dev/2022-August/397367.html
Signed-off-by: Aaron Conole <[email protected]>
---
 tests/system-kmod-macros.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/system-kmod-macros.at b/tests/system-kmod-macros.at
index 9ee1b1059d..f0f61d42ca 100644
--- a/tests/system-kmod-macros.at
+++ b/tests/system-kmod-macros.at
@@ -66,7 +66,7 @@ m4_define([CHECK_CONNTRACK],
                 [modprobe mod || echo "Module mod not loaded."
                  on_exit 'modprobe -r mod'
                 ])
-     sysctl -w net.netfilter.nf_conntrack_helper=0
+     sysctl -ew net.netfilter.nf_conntrack_helper=0
      on_exit 'ovstest test-netlink-conntrack flush'
     ]
 )
-- 
2.34.3

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to