diff options
author | Phil Sutter <phil@nwl.cc> | 2020-02-05 19:48:53 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-02-07 13:28:02 +0100 |
commit | 15ede6857c8c578ec6211c8b68424183ba1baf1a (patch) | |
tree | def6d0cda508a7ee0743a8cb9115908dff2afbb9 | |
parent | 106b1f2b93f82784c18dd5e312bbf88e6c02a5b8 (diff) |
tests: monitor: Support testing host's nft binary
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>
-rwxr-xr-x | tests/monitor/run-tests.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index efacdaaa..ffb833a7 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -119,6 +119,10 @@ while [ -n "$1" ]; do test_json=true shift ;; + -H|--host) + nft=nft + shift + ;; testcases/*.t) testcases+=" $1" shift |