From eb38ad04efae0ebcd7217c4ccace3da0102d85af Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Mon, 6 Feb 2023 11:05:13 -0600 Subject: [PATCH] dockerTools: ensure runAsRoot script not optimized away in test Co-authored-by: Robert Hensing --- nixos/tests/docker-tools.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix index 58d1d45f2fad..09741858c82e 100644 --- a/nixos/tests/docker-tools.nix +++ b/nixos/tests/docker-tools.nix @@ -41,7 +41,9 @@ let name = "repeated-layer-test"; copyToRoot = pkgs.bash; # A runAsRoot script is required to force previous layers to be unpacked - runAsRoot = ""; + runAsRoot = '' + echo 'runAsRoot has run.' + ''; }; in { name = "docker-tools";