mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
shellcheck fix: tests/functional/readfile-context.sh
This commit is contained in:
parent
c8a7719614
commit
8a36cf4422
2 changed files with 3 additions and 4 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/readfile-context\.sh$''
|
|
||||||
''^tests/functional/recursive\.sh$''
|
''^tests/functional/recursive\.sh$''
|
||||||
''^tests/functional/referrers\.sh$''
|
''^tests/functional/referrers\.sh$''
|
||||||
''^tests/functional/remote-store\.sh$''
|
''^tests/functional/remote-store\.sh$''
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ clearStore
|
||||||
outPath=$(nix-build --no-out-link readfile-context.nix)
|
outPath=$(nix-build --no-out-link readfile-context.nix)
|
||||||
|
|
||||||
# Set a GC root.
|
# Set a GC root.
|
||||||
ln -s $outPath "$NIX_STATE_DIR/gcroots/foo"
|
ln -s "$outPath" "$NIX_STATE_DIR/gcroots/foo"
|
||||||
|
|
||||||
# Check that file exists.
|
# Check that file exists.
|
||||||
[ "$(cat $(cat $outPath))" = "Hello World!" ]
|
[ "$(cat "$(cat "$outPath")")" = "Hello World!" ]
|
||||||
|
|
||||||
nix-collect-garbage
|
nix-collect-garbage
|
||||||
|
|
||||||
# Check that file still exists.
|
# Check that file still exists.
|
||||||
[ "$(cat $(cat $outPath))" = "Hello World!" ]
|
[ "$(cat "$(cat "$outPath")")" = "Hello World!" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue