aboutsummaryrefslogtreecommitdiff
path: root/tests/common.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r--tests/common.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in
index bbe97da68..939f2fce1 100644
--- a/tests/common.sh.in
+++ b/tests/common.sh.in
@@ -4,6 +4,8 @@ if [[ -z "$COMMON_SH_SOURCED" ]]; then
COMMON_SH_SOURCED=1
+export PS4='+(${BASH_SOURCE[0]}:$LINENO) '
+
export TEST_ROOT=$(realpath ${TMPDIR:-/tmp}/nix-test)/${TEST_NAME:-default}
export NIX_STORE_DIR
if ! NIX_STORE_DIR=$(readlink -f $TEST_ROOT/store 2> /dev/null); then