]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
set and use SYSTEMTESTTOP consistently
authorEvan Hunt <each@isc.org>
Wed, 23 Jan 2019 00:52:56 +0000 (16:52 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 19:24:09 +0000 (11:24 -0800)
bin/tests/system/clean.sh
bin/tests/system/masterformat/tests.sh

index 2306ac6cd0446af47f618af9aea96a9d6c02705c..2af06fb82db72cfe22a8bede58605ca52bfcb313 100644 (file)
 # Clean up after a specified system test.
 #
 
-SYSTEMTESTTOP=.
+SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
 . $SYSTEMTESTTOP/conf.sh
 
+export SYSTEMTESTTOP
+
 # See if the "-r" flag is present.  This will usually be set when all the tests
 # are run (e.g. from "runall.sh") and tells the script not to delete the
 # test.output file created by run.sh.  This is because the script running all
index 6d2fbc7783c01bcf0e31257cd6abd5fe878dca45..9a5164198803ec97050ebbd3f90707214719f10c 100755 (executable)
@@ -9,8 +9,8 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
-# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
 
 status=0
 n=1