summaryrefslogtreecommitdiffstats
path: root/tests/shell/run-tests.sh
diff options
context:
space:
mode:
authorHarsha Sharma <harshasharmaiitr@gmail.com>2017-10-05 13:13:47 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-10-06 14:34:50 +0200
commit6b99679798576f159d7160312cf474cb15b8d2a4 (patch)
tree6f1809f96b18a5a857d5245b710b51dfedf4317d /tests/shell/run-tests.sh
parent7fa0e8456afb5be61c9a8c3a997d4d7532e82b1d (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/shell/run-tests.sh')
-rwxr-xr-xtests/shell/run-tests.sh2
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