diff mbox series

[ipset,1/3] tests: cidr.sh: Respect IPSET_BIN env var

Message ID 20241212124733.14407-2-phil@nwl.cc
State Accepted
Delegated to: Jozsef Kadlecsik
Headers show
Series [ipset,1/3] tests: cidr.sh: Respect IPSET_BIN env var | expand

Commit Message

Phil Sutter Dec. 12, 2024, 12:47 p.m. UTC
Allow callers to specify the ipset binary to test (with), just like
runtest.sh itself does, too.

Fixes: d05e7e9349bd1 ("Out of bound access in hash:net* types fixed")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 tests/cidr.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/cidr.sh b/tests/cidr.sh
index 2c4d9399f02dc..ca01f063dee34 100755
--- a/tests/cidr.sh
+++ b/tests/cidr.sh
@@ -35,7 +35,7 @@  NETS="0.0.0.0/1
 255.255.255.252/31
 255.255.255.254/32"
 
-ipset="../src/ipset"
+ipset="${IPSET_BIN:-../src/ipset}"
 
 if which netmask >/dev/null 2>&1; then
 	net_first_addr() {