From: Florian Westphal Date: Thu, 23 Jul 2026 10:35:01 +0000 (+0200) Subject: tests: hash:net.t: prefer tail -n X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=bf0ff488de95ca06e51def571ff230ffd972eee1;p=thirdparty%2Fipset.git tests: hash:net.t: prefer tail -n seen on fedora 44: tail: cannot open '+2' for reading: No such file or directory Signed-off-by: Florian Westphal Signed-off-by: Jozsef Kadlecsik --- diff --git a/tests/hash:net.t b/tests/hash:net.t index 4f88327..73e36b5 100644 --- a/tests/hash:net.t +++ b/tests/hash:net.t @@ -61,7 +61,7 @@ # List set and check the number of elements 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 43520 # Stress test del with range notation -0 ./netgen.sh | tail +2|sed 's/^a/d/' | ipset restore +0 ./netgen.sh | tail -n +2 | sed 's/^a/d/' | ipset restore # List set and check the number of elements 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 0 # Destroy test set