Skip to contentSkip to conversation

test: shell: update shell/run-tests.sh to refer to relative path of testcase

PATCH Applied Harsha Sharma 2 participants 2 messages Oct 6, 2017 – Oct 9, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/shell/run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/shell/run-tests.sh +1 -1
index dbddd8d..fe30115 100755
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Configuration
-TESTDIR="./"
+TESTDIR="./$(dirname $0)/"
 RETURNCODE_SEPARATOR="_"
 SRC_NFT="$(dirname $0)/../../src/nft"
 
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Harsha Sharma

Refer to relative path for tests from any directory if path for testcases is specified.

Applied, thanks.