From: Phil Sutter Date: Tue, 22 Jul 2025 15:28:36 +0000 (+0200) Subject: tests: Fix for standalone calls to setlist_resize.sh X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fipset.git tests: Fix for standalone calls to setlist_resize.sh 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 Acked-by: Jozsef Kadlecsik --- diff --git a/tests/setlist_resize.sh b/tests/setlist_resize.sh index acb33e3..db347ca 100755 --- a/tests/setlist_resize.sh +++ b/tests/setlist_resize.sh @@ -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