diff mbox series

[ipset] tests: Fix for standalone calls to setlist_resize.sh

Message ID 20250722153205.4626-1-phil@nwl.cc
State Accepted
Delegated to: Jozsef Kadlecsik
Headers show
Series [ipset] tests: Fix for standalone calls to setlist_resize.sh | expand

Commit Message

Phil Sutter July 22, 2025, 3:32 p.m. UTC
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>
---
 tests/setlist_resize.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Phil Sutter March 20, 2026, 1:39 p.m. UTC | #1
On Tue, Jul 22, 2025 at 05:32:05PM +0200, Phil Sutter wrote:
> 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>

Patch applied.
diff mbox series

Patch

diff --git a/tests/setlist_resize.sh b/tests/setlist_resize.sh
index acb33e3ba0f08..db347ca065171 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