lib/tests: export separately from assignment

Avoids hiding the exit code from the assignment. See
<https://github.com/koalaman/shellcheck/wiki/SC2155>.
This commit is contained in:
Victor Engmark 2021-11-26 09:30:10 +13:00
parent 4b5c3d9376
commit 6d53055cb7

View file

@ -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() {