1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

shellcheck fix: tests/functional/local-overlay-store/redundant-add-inner.sh

This commit is contained in:
Farid Zakaria 2025-09-28 20:27:21 -07:00
parent 1bee4d0988
commit 0c50d5b25a
2 changed files with 4 additions and 5 deletions

View file

@ -138,7 +138,6 @@
''^tests/functional/local-overlay-store/gc\.sh$''
''^tests/functional/local-overlay-store/optimise-inner\.sh$''
''^tests/functional/local-overlay-store/optimise\.sh$''
''^tests/functional/local-overlay-store/redundant-add-inner\.sh$''
''^tests/functional/logging\.sh$''
''^tests/functional/misc\.sh$''
''^tests/functional/multiple-outputs\.sh$''

View file

@ -22,14 +22,14 @@ mountOverlayfs
pathInLowerStore=$(nix-store --store "$storeA" --add ../dummy)
# upper layer should not have it
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$pathInLowerStore")
expect 1 stat "$(toRealPath "$storeBTop/nix/store" "$pathInLowerStore")"
pathFromB=$(nix-store --store "$storeB" --add ../dummy)
[[ $pathInLowerStore == $pathFromB ]]
[[ $pathInLowerStore == "$pathFromB" ]]
# lower store should have it from before
stat $(toRealPath "$storeA/nix/store" "$pathInLowerStore")
stat "$(toRealPath "$storeA/nix/store" "$pathInLowerStore")"
# upper layer should still not have it (no redundant copy)
expect 1 stat $(toRealPath "$storeBTop" "$pathInLowerStore")
expect 1 stat "$(toRealPath "$storeBTop" "$pathInLowerStore")"