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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user