# 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
# 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