From d95c2f1eb788c4ccb1ce6f4add61943dbb334f07 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 11 Sep 2012 17:34:37 +0200 Subject: 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. --- tests/hash:net6.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/hash:net6.t') diff --git a/tests/hash:net6.t b/tests/hash:net6.t index 2200362..d0c2652 100644 --- a/tests/hash:net6.t +++ b/tests/hash:net6.t @@ -33,13 +33,13 @@ # Try to add IP address 0 ipset add test 3:0:0::1 # 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:net6.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:net6.t.list1 # Flush test set -- cgit v1.2.3