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:
parent
8a36cf4422
commit
5d1333bf4b
2 changed files with 8 additions and 8 deletions
|
|
@ -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$''
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue