summaryrefslogtreecommitdiffstats
path: root/tests/portmap.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/portmap.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/portmap.t')
-rw-r--r--tests/portmap.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/portmap.t b/tests/portmap.t
index c9856bf..36ad682 100644
--- a/tests/portmap.t
+++ b/tests/portmap.t
@@ -25,7 +25,7 @@
# Range: Delete the same element
0 ipset -D test 567
# Range: List set
-0 ipset -L test > .foo
+0 ipset -L test | grep -v Revision: > .foo
# Range: Check listing
0 diff -u -I 'Size in memory.*' .foo portmap.t.list0
# Range: Flush test set
@@ -45,7 +45,7 @@
# Full: Test value not added to the set
1 ipset -T test 1
# Full: List set
-0 ipset -L test > .foo
+0 ipset -L test | grep -v Revision: > .foo
# Full: Check listing
0 diff -u -I 'Size in memory.*' .foo portmap.t.list1
# Full: Flush test set
@@ -69,13 +69,13 @@
# Full: Delete the same element
0 ipset -D test 567
# Full: List set
-0 ipset -L test | sed 's/timeout ./timeout x/' > .foo
+0 ipset -L test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo
# Full: Check listing
0 diff -u -I 'Size in memory.*' .foo portmap.t.list3
# Full: sleep 5s so that elements can timeout
0 sleep 5
# Full: List set
-0 ipset -L test > .foo
+0 ipset -L test | grep -v Revision: > .foo
# Full: Check listing
# 0 diff -u -I 'Size in memory.*' .foo portmap.t.list2
# Full: Flush test set