From 06db3319226b061d385521cdab74cd676254e9e9 Mon Sep 17 00:00:00 2001 From: Utku Demir Date: Mon, 6 Jul 2020 16:59:58 +1200 Subject: dockerTools: Verify nix-store contents on buildLayeredImage test --- nixos/tests/docker-tools.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nixos') 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'", ) ''; }) -- cgit 1.4.1