From: Harsha Sharma Date: Thu, 5 Oct 2017 07:43:47 +0000 (+0530) Subject: test: shell: execute shell/run-tests.sh from any directory X-Git-Tag: v0.8~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b99679798576f159d7160312cf474cb15b8d2a4;p=thirdparty%2Fnftables.git 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 Signed-off-by: Pablo Neira Ayuso --- 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