summaryrefslogtreecommitdiffstats
path: root/tests/setlist_resize.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2024-02-05 12:41:10 +0100
committerJozsef Kadlecsik <kadlec@netfilter.org>2024-02-05 12:41:10 +0100
commit48ca2ebc6fde8fa5ffdb194475618516e20a02de (patch)
tree43828a31c1e50d5e592acdd55a879ebb861b9f61 /tests/setlist_resize.sh
parent099916e8f2c0a9c84f79469a8db49f775d4af16e (diff)
tests: Verify module unload when sets with timeout were just destroyed
Diffstat (limited to 'tests/setlist_resize.sh')
-rwxr-xr-xtests/setlist_resize.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/setlist_resize.sh b/tests/setlist_resize.sh
index 3255656..848f1d1 100755
--- a/tests/setlist_resize.sh
+++ b/tests/setlist_resize.sh
@@ -12,7 +12,7 @@ for x in ip_set_list_set ip_set_hash_netiface ip_set_hash_ipportnet \
ip_set_hash_netportnet ip_set_hash_ipmark ip_set_hash_mac \
ip_set_bitmap_port ip_set_bitmap_ipmac \
ip_set_bitmap_ip xt_set ip_set; do
- rmmod $x
+ rmmod $x >/dev/null 2>&1
done
create() {
@@ -31,6 +31,6 @@ for x in `seq 1 $loop`; do
test `$ipset l -n | wc -l` -eq 1024 || exit 1
$ipset x
test `lsmod|grep -w ^ip_set_hash_ip | awk '{print $3}'` -eq 0 || exit 1
- rmmod ip_set_hash_ip
- rmmod ip_set
+ rmmod ip_set_hash_ip >/dev/null 2>&1
+ rmmod ip_set >/dev/null 2>&1
done