diff --git a/tests/functional/local-overlay-store/redundant-add-inner.sh b/tests/functional/local-overlay-store/redundant-add-inner.sh index 0fb3af2a6..d2c95b187 100755 --- a/tests/functional/local-overlay-store/redundant-add-inner.sh +++ b/tests/functional/local-overlay-store/redundant-add-inner.sh @@ -18,9 +18,10 @@ mountOverlayfs ### Do a redundant add -# upper layer should not have it -path=$(nix-store --store "$storeA" ../dummy) +# (Already done in `initLowerStore`, but repeated here for clarity.) +path=$(nix-store --store "$storeA" --add ../dummy) +# upper layer should not have it expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path") pathFromB=$(nix-store --store "$storeB" --add ../dummy)