tests: TRACE-target-of-iptables-can-t-work-in: Allow rmmod to fail

Modules are loaded with older kernels only, ignore if rmmod fails.
This commit is contained in:
Phil Sutter 2023-10-27 20:34:56 +00:00
parent 33ffe56c42
commit e68693c04a
1 changed files with 3 additions and 3 deletions

View File

@ -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