1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

shellcheck fix: tests/functional/recursive.sh

This commit is contained in:
Farid Zakaria 2025-09-30 19:59:03 -07:00
parent 8a36cf4422
commit 5d1333bf4b
2 changed files with 8 additions and 8 deletions

View file

@ -106,7 +106,6 @@
enable = true; enable = true;
excludes = [ excludes = [
# We haven't linted these files yet # We haven't linted these files yet
''^tests/functional/recursive\.sh$''
''^tests/functional/referrers\.sh$'' ''^tests/functional/referrers\.sh$''
''^tests/functional/remote-store\.sh$'' ''^tests/functional/remote-store\.sh$''
''^tests/functional/repair\.sh$'' ''^tests/functional/repair\.sh$''

View file

@ -9,15 +9,16 @@ restartDaemon
clearStore 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. # 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 foobar
nix path-info -r $TEST_ROOT/result | grep fnord 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 inner1