diff options
author | Magnus Ahltorp <map@kth.se> | 2016-10-13 15:10:20 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2016-10-13 15:16:29 +0200 |
commit | c1dfe32e2ba948e62535102ab6dbafa60c3c6eda (patch) | |
tree | f645ce96cb3ec311115f3a4bba410132ca1dc2e9 /test/scripts/light-system-test-prepare-redistribute-frontend.sh | |
parent | 4213c3f7987b5f2a01fb12049ae7d5b84645640d (diff) |
Make tests run independently from cwd
Diffstat (limited to 'test/scripts/light-system-test-prepare-redistribute-frontend.sh')
-rwxr-xr-x | test/scripts/light-system-test-prepare-redistribute-frontend.sh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/scripts/light-system-test-prepare-redistribute-frontend.sh b/test/scripts/light-system-test-prepare-redistribute-frontend.sh index c9a39a1..00d2070 100755 --- a/test/scripts/light-system-test-prepare-redistribute-frontend.sh +++ b/test/scripts/light-system-test-prepare-redistribute-frontend.sh @@ -3,13 +3,11 @@ set -o nounset set -o errexit -SOFTHSM=/usr/local/bin/softhsm2-util -INSTDIR=../catlfish -PREFIX=.. +top_srcdir=$(cd $(dirname $0)/../..; pwd) -. ./test.shvars +. ${top_srcdir}/test/test.shvars -mv ${INSTDIR}/tests/machine/machine-1 ${INSTDIR}/tests/machine/machine-1-down -mkdir -p ${INSTDIR}/tests/machine/machine-1/db -touch ${INSTDIR}/tests/machine/machine-1/db/index -touch ${INSTDIR}/tests/machine/machine-1/db/newentries +mv machine/machine-1 machine/machine-1-down +mkdir -p machine/machine-1/db +touch machine/machine-1/db/index +touch machine/machine-1/db/newentries |