From 0193c2abcd28cb4f5de73601360a1ba13de633d9 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 8 May 2023 16:03:32 -0400 Subject: [PATCH] Improve tests slightly --- tests/overlay-local-store/inner.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/overlay-local-store/inner.sh b/tests/overlay-local-store/inner.sh index 524c801bd..ccf24b7b0 100755 --- a/tests/overlay-local-store/inner.sh +++ b/tests/overlay-local-store/inner.sh @@ -63,12 +63,15 @@ expect 1 nix-store --verify-path --store "$storeB" "$path" ### Do a redundant add +# upper layer should not have it +expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path") + path=$(nix-store --store "$storeB" --add dummy) # lower store should have it from before stat $(toRealPath "$storeA/nix/store" "$path") -# upper store should not have redundant copy +# upper layer should still not have it (no redundant copy) # FIXME should fail stat $(toRealPath "$storeA/nix/store" "$path")