From: Harsha Sharma Date: Fri, 6 Oct 2017 22:47:52 +0000 (+0530) Subject: test: shell: update shell/run-tests.sh to refer to relative path of testcase X-Git-Tag: v0.8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31933bdfdc38e782d5afd4b52d83e424162827c3;p=thirdparty%2Fnftables.git test: shell: update shell/run-tests.sh to refer to relative path of testcase Refer to relative path for tests from any directory if path for testcases is specified. 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 dbddd8d5a..fe30115e0 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -1,7 +1,7 @@ #!/bin/bash # Configuration -TESTDIR="./" +TESTDIR="./$(dirname $0)/" RETURNCODE_SEPARATOR="_" SRC_NFT="$(dirname $0)/../../src/nft"