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:
parent
4b5c3d9376
commit
6d53055cb7
|
@ -9,10 +9,11 @@ die() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if test -n "${TEST_LIB:-}"; then
|
if test -n "${TEST_LIB:-}"; then
|
||||||
export NIX_PATH=nixpkgs="$(dirname "$TEST_LIB")"
|
NIX_PATH=nixpkgs="$(dirname "$TEST_LIB")"
|
||||||
else
|
else
|
||||||
export NIX_PATH=nixpkgs="$(cd $(dirname ${BASH_SOURCE[0]})/../..; pwd)"
|
NIX_PATH=nixpkgs="$(cd $(dirname ${BASH_SOURCE[0]})/../..; pwd)"
|
||||||
fi
|
fi
|
||||||
|
export NIX_PATH
|
||||||
|
|
||||||
work="$(mktemp -d)"
|
work="$(mktemp -d)"
|
||||||
clean_up() {
|
clean_up() {
|
||||||
|
|
Loading…
Reference in a new issue