mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02: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
1 changed files with 5 additions and 1 deletions
|
@ -19,9 +19,13 @@ mountOverlayfs
|
|||
### Do a redundant add
|
||||
|
||||
# upper layer should not have it
|
||||
path=$(nix-store --store "$storeA" ../dummy)
|
||||
|
||||
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
|
||||
stat $(toRealPath "$storeA/nix/store" "$path")
|
||||
|
|
Loading…
Reference in a new issue