From c1dfe32e2ba948e62535102ab6dbafa60c3c6eda Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Thu, 13 Oct 2016 15:10:20 +0200 Subject: Make tests run independently from cwd --- test/scripts/light-system-test-stop.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/scripts/light-system-test-stop.sh') diff --git a/test/scripts/light-system-test-stop.sh b/test/scripts/light-system-test-stop.sh index 77fd00b..1828e73 100755 --- a/test/scripts/light-system-test-stop.sh +++ b/test/scripts/light-system-test-stop.sh @@ -3,11 +3,10 @@ set -o nounset set -o errexit -INSTDIR=../catlfish -PREFIX=.. +top_srcdir=$(cd $(dirname $0)/../..; pwd) -. ./test.shvars +. ${top_srcdir}/test/test.shvars for node in ${ERLANGNODES}; do - ${PREFIX}/tools/to_catlfish.py to_erl ${INSTDIR}/tests/nodes/${node}/ "init:stop()" + ${top_srcdir}/tools/to_catlfish.py to_erl nodes/${node}/ "init:stop()" done -- cgit v1.1