mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
shellcheck fix: tests/functional/local-overlay-store/redundant-add-inner.sh
This commit is contained in:
parent
1bee4d0988
commit
0c50d5b25a
2 changed files with 4 additions and 5 deletions
|
|
@ -138,7 +138,6 @@
|
||||||
''^tests/functional/local-overlay-store/gc\.sh$''
|
''^tests/functional/local-overlay-store/gc\.sh$''
|
||||||
''^tests/functional/local-overlay-store/optimise-inner\.sh$''
|
''^tests/functional/local-overlay-store/optimise-inner\.sh$''
|
||||||
''^tests/functional/local-overlay-store/optimise\.sh$''
|
''^tests/functional/local-overlay-store/optimise\.sh$''
|
||||||
''^tests/functional/local-overlay-store/redundant-add-inner\.sh$''
|
|
||||||
''^tests/functional/logging\.sh$''
|
''^tests/functional/logging\.sh$''
|
||||||
''^tests/functional/misc\.sh$''
|
''^tests/functional/misc\.sh$''
|
||||||
''^tests/functional/multiple-outputs\.sh$''
|
''^tests/functional/multiple-outputs\.sh$''
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,14 @@ mountOverlayfs
|
||||||
pathInLowerStore=$(nix-store --store "$storeA" --add ../dummy)
|
pathInLowerStore=$(nix-store --store "$storeA" --add ../dummy)
|
||||||
|
|
||||||
# upper layer should not have it
|
# 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)
|
pathFromB=$(nix-store --store "$storeB" --add ../dummy)
|
||||||
|
|
||||||
[[ $pathInLowerStore == $pathFromB ]]
|
[[ $pathInLowerStore == "$pathFromB" ]]
|
||||||
|
|
||||||
# lower store should have it from before
|
# 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)
|
# upper layer should still not have it (no redundant copy)
|
||||||
expect 1 stat $(toRealPath "$storeBTop" "$pathInLowerStore")
|
expect 1 stat "$(toRealPath "$storeBTop" "$pathInLowerStore")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue