mirror of
https://github.com/NixOS/nix
synced 2025-07-10 08:53:55 +02:00
Fix tests after last rename (path
-> pathInLowerStore
)
This commit is contained in:
parent
c90e46d3f0
commit
8d0a03b5a2
2 changed files with 15 additions and 15 deletions
|
@ -19,17 +19,17 @@ mountOverlayfs
|
|||
### Do a redundant add
|
||||
|
||||
# (Already done in `initLowerStore`, but repeated here for clarity.)
|
||||
path=$(nix-store --store "$storeA" --add ../dummy)
|
||||
pathInLowerStore=$(nix-store --store "$storeA" --add ../dummy)
|
||||
|
||||
# upper layer should not have it
|
||||
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path")
|
||||
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$pathInLowerStore")
|
||||
|
||||
pathFromB=$(nix-store --store "$storeB" --add ../dummy)
|
||||
|
||||
[[ $path == $pathFromB ]]
|
||||
[[ $pathInLowerStore == $pathFromB ]]
|
||||
|
||||
# lower store should have it from before
|
||||
stat $(toRealPath "$storeA/nix/store" "$path")
|
||||
stat $(toRealPath "$storeA/nix/store" "$pathInLowerStore")
|
||||
|
||||
# upper layer should still not have it (no redundant copy)
|
||||
expect 1 stat $(toRealPath "$storeBTop" "$path")
|
||||
expect 1 stat $(toRealPath "$storeBTop" "$pathInLowerStore")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue