diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2016-06-23 13:45:44 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-23 19:47:53 +0200 |
commit | ad04b6e6903328480a824177d0e7c90bd89050a4 (patch) | |
tree | c2fec0c4b95f1efdb191336a84d6b537072729c9 /tests/shell/run-tests.sh | |
parent | 1b25bfa4b2f6b14dbee569ff467ea4d495abcc81 (diff) |
tests: shell: run-tests.sh: use src/nft binary by default
Better use the local tree nft binary rather than the installed one.
Requested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/run-tests.sh')
-rwxr-xr-x | tests/shell/run-tests.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index b10445d2..32776550 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -3,6 +3,7 @@ # Configuration TESTDIR="./" RETURNCODE_SEPARATOR="_" +SRC_NFT="../../src/nft" msg_error() { echo "E: $1 ..." >&2 @@ -21,7 +22,7 @@ if [ "$(id -u)" != "0" ] ; then msg_error "this requires root!" fi -[ -z "$NFT" ] && NFT="$(which nft)" +[ -z "$NFT" ] && NFT=$SRC_NFT if [ ! -x "$NFT" ] ; then msg_error "no nft binary!" else |