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/macipmap.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/macipmap.t') diff --git a/tests/macipmap.t b/tests/macipmap.t index 19fb039..e10fe03 100644 --- a/tests/macipmap.t +++ b/tests/macipmap.t @@ -39,7 +39,7 @@ # Range: Delete the same element 0 ipset -D test 2.0.200.214 # 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 macipmap.t.list0 # Range: Flush test set @@ -79,7 +79,7 @@ # Network: Add MAC to already added element 0 ipset -A test 2.0.255.255,00:11:22:33:44:56 # Network: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Network: Check listing 0 diff -u -I 'Size in memory.*' .foo macipmap.t.list1 # Network: Flush test set @@ -119,13 +119,13 @@ # Range: Delete the same element 0 ipset -D test 2.0.200.214 # Range: 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 # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo macipmap.t.list3 # Range: sleep 5s so that elements can timeout 0 sleep 5 # Range: 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 # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo macipmap.t.list2 # Range: Flush test set -- cgit v1.2.3