shellcheck fix: tests/functional/recursive.sh
This commit is contained in:
@@ -106,7 +106,6 @@
|
||||
enable = true;
|
||||
excludes = [
|
||||
# We haven't linted these files yet
|
||||
''^tests/functional/recursive\.sh$''
|
||||
''^tests/functional/referrers\.sh$''
|
||||
''^tests/functional/remote-store\.sh$''
|
||||
''^tests/functional/repair\.sh$''
|
||||
|
||||
@@ -9,15 +9,16 @@ restartDaemon
|
||||
|
||||
clearStore
|
||||
|
||||
rm -f $TEST_ROOT/result
|
||||
rm -f "$TEST_ROOT"/result
|
||||
|
||||
export unreachable=$(nix store add-path ./recursive.sh)
|
||||
unreachable=$(nix store add-path ./recursive.sh)
|
||||
export unreachable
|
||||
|
||||
NIX_BIN_DIR=$(dirname $(type -p nix)) nix --extra-experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L --impure --file ./recursive.nix
|
||||
NIX_BIN_DIR=$(dirname "$(type -p nix)") nix --extra-experimental-features 'nix-command recursive-nix' build -o "$TEST_ROOT"/result -L --impure --file ./recursive.nix
|
||||
|
||||
[[ $(cat $TEST_ROOT/result/inner1) =~ blaat ]]
|
||||
[[ $(cat "$TEST_ROOT"/result/inner1) =~ blaat ]]
|
||||
|
||||
# Make sure the recursively created paths are in the closure.
|
||||
nix path-info -r $TEST_ROOT/result | grep foobar
|
||||
nix path-info -r $TEST_ROOT/result | grep fnord
|
||||
nix path-info -r $TEST_ROOT/result | grep inner1
|
||||
nix path-info -r "$TEST_ROOT"/result | grep foobar
|
||||
nix path-info -r "$TEST_ROOT"/result | grep fnord
|
||||
nix path-info -r "$TEST_ROOT"/result | grep inner1
|
||||
|
||||
Reference in New Issue
Block a user