dockerTools: ensure runAsRoot script not optimized away in test

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Andrew Brooks 2023-02-06 11:05:13 -06:00 committed by GitHub
parent f4e4cac0c8
commit eb38ad04ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";