Skip to contentSkip to conversation

test: shell: execute shell/run-tests.sh from any directory

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: shell: execute shell/run-tests.sh from any directory

Update shell/run-tests.sh to refer /src/nft with a relative path

---
 tests/shell/run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/shell/run-tests.sh +1 -1
index 4eba0a8..dbddd8d 100755
@@ -3,7 +3,7 @@
 # Configuration
 TESTDIR="./"
 RETURNCODE_SEPARATOR="_"
-SRC_NFT="../../src/nft"
+SRC_NFT="$(dirname $0)/../../src/nft"
 
 msg_error() {
 	echo "E: $1 ..." >&2
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw
Quoted 1 line · Harsha Sharma

Update shell/run-tests.sh to refer /src/nft with a relative path

Applied, thanks Harsha.