From 6bb13358e6746d1746abf4bd926420ad94ea0ff4 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 11 Dec 2023 13:34:09 -0500 Subject: [PATCH] Update tests/functional/local-overlay-store/redundant-add-inner.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> --- tests/functional/local-overlay-store/redundant-add-inner.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/functional/local-overlay-store/redundant-add-inner.sh b/tests/functional/local-overlay-store/redundant-add-inner.sh index 71899a9a7..0fb3af2a6 100755 --- a/tests/functional/local-overlay-store/redundant-add-inner.sh +++ b/tests/functional/local-overlay-store/redundant-add-inner.sh @@ -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")