aboutsummaryrefslogtreecommitdiff
path: root/tests/binary-cache-build-remote.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/binary-cache-build-remote.sh')
-rw-r--r--tests/binary-cache-build-remote.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/binary-cache-build-remote.sh b/tests/binary-cache-build-remote.sh
index ed51164a4..81cd21a4a 100644
--- a/tests/binary-cache-build-remote.sh
+++ b/tests/binary-cache-build-remote.sh
@@ -7,7 +7,10 @@ clearCacheCache
(! nix-build --store "file://$cacheDir" dependencies.nix)
# Succeeds with default store as build remote.
-nix-build --store "file://$cacheDir" --builders 'auto - - 1 1' -j0 dependencies.nix
+outPath=$(nix-build --store "file://$cacheDir" --builders 'auto - - 1 1' -j0 dependencies.nix)
+
+# Test that the path exactly exists in the destination store.
+nix path-info --store "file://$cacheDir" $outPath
# Succeeds without any build capability because no-op
nix-build --store "file://$cacheDir" -j0 dependencies.nix