]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
tests: restore using sendip when available master
authorJozsef Kadlecsik <kadlec@netfilter.org>
Wed, 29 Jul 2026 15:29:06 +0000 (17:29 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Wed, 29 Jul 2026 15:29:06 +0000 (17:29 +0200)
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/runtest.sh

index 238175440cc48f86b24b7a04189ec15aa5b8aa9f..1b00b7bc55d5b9e84118df90c247c396657c5f95 100755 (executable)
@@ -52,7 +52,7 @@ export LC_ALL
 export IPSET_TMP="$tmpdir"
 
 HAVE_SENDIP=n
 export IPSET_TMP="$tmpdir"
 
 HAVE_SENDIP=n
-[ -z "`which sendip`" ] && HAVE_SENDIP=y
+[ -n "`which sendip`" ] && HAVE_SENDIP=y
 if [ $HAVE_SENDIP = "n" ]; then
        if python -c 'from scapy.all import ( IPv6 )'; then
                HAVE_SENDIP=y
 if [ $HAVE_SENDIP = "n" ]; then
        if python -c 'from scapy.all import ( IPv6 )'; then
                HAVE_SENDIP=y