From 9813e54a74eb9c12494d1870dc660fd1cf2efd1b Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 9 Feb 2023 22:14:53 +0100 Subject: [PATCH] tests: Add command source locations to test log --- tests/common.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/common.sh.in b/tests/common.sh.in index 74bbbc8ca..e72a8e12e 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