aboutsummaryrefslogtreecommitdiff
path: root/tests/common.sh.in
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-10 20:55:57 +0100
committerGitHub <noreply@github.com>2023-02-10 20:55:57 +0100
commitc18456604601dd233be4ad2462474488ef8f87e3 (patch)
tree6b819fbb6da91891fdf904a64aa599797388319d /tests/common.sh.in
parentb3d29e80e024a981a253e519a397fdf81612c739 (diff)
parent9813e54a74eb9c12494d1870dc660fd1cf2efd1b (diff)
Merge pull request #7797 from hercules-ci/tests-set-ps4
tests: Add command source locations to test log
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