]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
tests: Fix for standalone calls to setlist_resize.sh master
authorPhil Sutter <phil@nwl.cc>
Tue, 22 Jul 2025 15:28:36 +0000 (17:28 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 20 Mar 2026 13:38:03 +0000 (14:38 +0100)
If called without ip_set.ko loaded, the unconditional 'rmmod ip_set' at
startup will fail and the previous 'set -e' makes that fatal.

Fixes: ed47b815a0d2c ("tests: add namespace test and take into account delayed set removal at module remove")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/setlist_resize.sh

index acb33e3ba0f080060fced9f79ed5d8558ce8b9a5..db347ca06517101ff5f115fc8069238514b0311b 100755 (executable)
@@ -20,7 +20,7 @@ while [ $n -le 9 ]; do
        n=10
     fi
 done
-rmmod ip_set >/dev/null 2>&1
+rmmod ip_set >/dev/null 2>&1 || :
 
 create() {
     n=$1