From: Jozsef Kadlecsik Date: Tue, 1 Feb 2011 19:37:42 +0000 (+0100) Subject: Testsuite compatibility with debugging enabled X-Git-Tag: v6.0~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d68997e09448eeca990dbc2c55b02b698a392c8d;p=ipset Testsuite compatibility with debugging enabled The error line checking would fail when debugging is enabled (and spit out junk lines), fixed. --- diff --git a/tests/ipmap.t b/tests/ipmap.t index af6e36b..443d40d 100644 --- a/tests/ipmap.t +++ b/tests/ipmap.t @@ -43,7 +43,7 @@ # Range: Restore set and catch error 1 sed 's/2.0.0.131/222.0.0.131/' < ipmap.t.restore | ipset -R # Range: Check returned error line number -0 num=`sed 's/.* in line //' < .foo.err | cut -d : -f 1` && test $num -eq 6 +0 num=`grep 'in line' < .foo.err | sed 's/.* in line //' | cut -d : -f 1` && test $num -eq 6 # Range: Destroy set 0 ipset -X test # Range: Restore set