diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-02-09 22:14:53 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-02-09 22:14:53 +0100 |
commit | 9813e54a74eb9c12494d1870dc660fd1cf2efd1b (patch) | |
tree | 09f1884b152aa687a1337f1df84def6fb53975a3 | |
parent | 5597d68e2d73a3b89ff36fcfeac82d7fe7d4f384 (diff) |
tests: Add command source locations to test log
-rw-r--r-- | tests/common.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
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 |