diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2017-10-05 13:13:47 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-06 14:34:50 +0200 |
commit | 6b99679798576f159d7160312cf474cb15b8d2a4 (patch) | |
tree | 6f1809f96b18a5a857d5245b710b51dfedf4317d /tests | |
parent | 7fa0e8456afb5be61c9a8c3a997d4d7532e82b1d (diff) |
test: shell: execute shell/run-tests.sh from any directory
Update shell/run-tests.sh to refer /src/nft with a relative path
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shell/run-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 4eba0a8f..dbddd8d5 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -3,7 +3,7 @@ # Configuration TESTDIR="./" RETURNCODE_SEPARATOR="_" -SRC_NFT="../../src/nft" +SRC_NFT="$(dirname $0)/../../src/nft" msg_error() { echo "E: $1 ..." >&2 |