mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
shellcheck fix: tests/functional/recursive.sh
This commit is contained in:
parent
8a36cf4422
commit
5d1333bf4b
2 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue