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:
John Ericson 2023-12-11 13:34:09 -05:00 committed by GitHub
parent bf0bf3d1be
commit 6bb13358e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")