summaryrefslogtreecommitdiffstats
path: root/tests/hash:net,port.t
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-09-11 17:34:37 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-09-11 17:34:37 +0200
commitd95c2f1eb788c4ccb1ce6f4add61943dbb334f07 (patch)
tree6bc859294d1bd1c2045a80900d5dab88db0c47b0 /tests/hash:net,port.t
parentaec28884e7fdce80d8efc73276a4f5b675959701 (diff)
The set type revision number is added to the header part of listing
Incompatibility: if your script rely on the number of lines in the header of set listings, then the new line Revision: number can break your script.
Diffstat (limited to 'tests/hash:net,port.t')
-rw-r--r--tests/hash:net,port.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hash:net,port.t b/tests/hash:net,port.t
index 5b60476..34b29f1 100644
--- a/tests/hash:net,port.t
+++ b/tests/hash:net,port.t
@@ -41,13 +41,13 @@
# Test ICMP by name
0 ipset test test 2.0.0.255,icmp:host-prohibited
# List set
-0 ipset list test | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0
+0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0
# Check listing
0 diff -u -I 'Size in memory.*' .foo hash:net,port.t.list0
# Sleep 5s so that element can time out
0 sleep 5
# IP: List set
-0 ipset -L test 2>/dev/null > .foo0 && ./sort.sh .foo0
+0 ipset -L test 2>/dev/null | grep -v Revision: > .foo0 && ./sort.sh .foo0
# IP: Check listing
0 diff -u -I 'Size in memory.*' .foo hash:net,port.t.list1
# Flush test set