From e68693c04abe9f2716fe8307e39fd17ef88bdfa5 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 27 Oct 2023 20:34:56 +0000 Subject: [PATCH] tests: TRACE-target-of-iptables-can-t-work-in: Allow rmmod to fail Modules are loaded with older kernels only, ignore if rmmod fails. --- tests/TRACE-target-of-iptables-can-t-work-in/runtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TRACE-target-of-iptables-can-t-work-in/runtest.sh b/tests/TRACE-target-of-iptables-can-t-work-in/runtest.sh index e228d78..734108b 100755 --- a/tests/TRACE-target-of-iptables-can-t-work-in/runtest.sh +++ b/tests/TRACE-target-of-iptables-can-t-work-in/runtest.sh @@ -135,9 +135,9 @@ rlJournalStart rlRun "ip -6 route restore < ip-route.save6" 0 "restore routing info ipv6" rlRun "iptables -t raw -F" rlRun "ip6tables -t raw -F" - rlRun "rmmod nf_log_ipv4" - rlRun "rmmod nf_log_ipv6" - rlRun "rmmod nf_log_common" + rlRun "rmmod nf_log_ipv4" 0,1 + rlRun "rmmod nf_log_ipv6" 0,1 + rlRun "rmmod nf_log_common" 0,1 rlRun "rmmod nfnetlink_log" 0,1 rlLogInfo "restoring services" for svc in $SERVICES; do