summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorUtku Demir <me@utdemir.com>2020-07-06 16:59:58 +1200
committerUtku Demir <me@utdemir.com>2020-07-06 16:59:58 +1200
commit06db3319226b061d385521cdab74cd676254e9e9 (patch)
tree7345402db35e7808e48fd69446af45f4ea2b03ff /nixos
parent2ae2186dfda22ee49b8ab1027643bd11909246d5 (diff)
downloadnixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar.gz
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar.bz2
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar.lz
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar.xz
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.tar.zst
nixpkgs-06db3319226b061d385521cdab74cd676254e9e9.zip
dockerTools: Verify nix-store contents on buildLayeredImage test
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/docker-tools.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix
index 01f7d17f58f..ad734a71f01 100644
--- a/nixos/tests/docker-tools.nix
+++ b/nixos/tests/docker-tools.nix
@@ -179,10 +179,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
         docker.succeed("docker run --rm no-store-paths ls /")
         docker.fail("docker run --rm no-store-paths ls /nix/store")
 
-    with subtest("Ensure buildLayeredImage supports files directly under /nix/store"):
+    with subtest("Ensure buildLayeredImage does not change store path contents."):
         docker.succeed(
             "docker load --input='${pkgs.dockerTools.examples.filesInStore}'",
-            "docker run file-in-store |& grep 'some data'",
+            "docker run --rm file-in-store nix-store --verify --check-contents",
+            "docker run --rm file-in-store |& grep 'some data'",
         )
   '';
 })