]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: monitor: Support testing host's nft binary
authorPhil Sutter <phil@nwl.cc>
Wed, 5 Feb 2020 18:48:53 +0000 (19:48 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 7 Feb 2020 12:28:02 +0000 (13:28 +0100)
Add support for -H/--host flag to use 'nft' tool from $PATH instead of
the local one.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/monitor/run-tests.sh

index efacdaaab952b399acc65b4077ae38e866f5a653..ffb833a7f86f0df5f9412d52aea685e20663e2a5 100755 (executable)
@@ -119,6 +119,10 @@ while [ -n "$1" ]; do
                test_json=true
                shift
                ;;
+       -H|--host)
+               nft=nft
+               shift
+               ;;
        testcases/*.t)
                testcases+=" $1"
                shift