mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
Update tests/functional/local-overlay-store/redundant-add-inner.sh
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
bf0bf3d1be
commit
6bb13358e6
@ -19,9 +19,13 @@ mountOverlayfs
|
|||||||
### Do a redundant add
|
### Do a redundant add
|
||||||
|
|
||||||
# upper layer should not have it
|
# upper layer should not have it
|
||||||
|
path=$(nix-store --store "$storeA" ../dummy)
|
||||||
|
|
||||||
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path")
|
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path")
|
||||||
|
|
||||||
path=$(nix-store --store "$storeB" --add ../dummy)
|
pathFromB=$(nix-store --store "$storeB" --add ../dummy)
|
||||||
|
|
||||||
|
[[ $path == $pathFromB ]]
|
||||||
|
|
||||||
# lower store should have it from before
|
# lower store should have it from before
|
||||||
stat $(toRealPath "$storeA/nix/store" "$path")
|
stat $(toRealPath "$storeA/nix/store" "$path")
|
||||||
|
Loading…
Reference in New Issue
Block a user