From 6d53055cb742e2b04511382f9cdbf9e41ec41f14 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 26 Nov 2021 09:30:10 +1300 Subject: [PATCH] lib/tests: `export` separately from assignment Avoids hiding the exit code from the assignment. See . --- lib/tests/sources.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tests/sources.sh b/lib/tests/sources.sh index 1f63cac5005a..e148d023c854 100755 --- a/lib/tests/sources.sh +++ b/lib/tests/sources.sh @@ -9,10 +9,11 @@ die() { } if test -n "${TEST_LIB:-}"; then - export NIX_PATH=nixpkgs="$(dirname "$TEST_LIB")" + NIX_PATH=nixpkgs="$(dirname "$TEST_LIB")" else - export NIX_PATH=nixpkgs="$(cd $(dirname ${BASH_SOURCE[0]})/../..; pwd)" + NIX_PATH=nixpkgs="$(cd $(dirname ${BASH_SOURCE[0]})/../..; pwd)" fi +export NIX_PATH work="$(mktemp -d)" clean_up() {