]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
test: shell: update shell/run-tests.sh to refer to relative path of testcase
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Fri, 6 Oct 2017 22:47:52 +0000 (04:17 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Oct 2017 13:22:31 +0000 (15:22 +0200)
Refer to relative path for tests from any directory if path for testcases
is specified.

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/run-tests.sh

index dbddd8d5ac9beef00005b851d897238a0f72f956..fe30115e0807c67b5a1d26fe8ea5d2758a187646 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Configuration
-TESTDIR="./"
+TESTDIR="./$(dirname $0)/"
 RETURNCODE_SEPARATOR="_"
 SRC_NFT="$(dirname $0)/../../src/nft"