From 610a12680b473e39110e6a997d663cfcc9625995 Mon Sep 17 00:00:00 2001 From: Sergii Kipot Date: Mon, 2 Jan 2017 19:16:05 +0100 Subject: [PATCH] TT#8635 set umask for files created by docker tests made in 'docker run' create files with 'root' owner and ws-cleanup plugin can't delete them after. Fixing umask here to allow files deletion. Change-Id: Ia9b03983d174a1546631f5b42e605235809711ef --- t/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/Dockerfile b/t/Dockerfile index c44f321..8be9f4a 100644 --- a/t/Dockerfile +++ b/t/Dockerfile @@ -20,6 +20,11 @@ RUN echo 'prove -I /code/lib -v --color -l --formatter TAP::Formatter::JUnit' >> RUN echo 'prove -I /code/lib --color -l' >>/root/.bash_history RUN echo './t/testrunner' >>/root/.bash_history +# Create files with mode 666 and folders with mode 777 which +# allows to delete the temporary files (aka results) for +# non-root users (like 'jenkins' or 'developer's laptop local user') +RUN echo 'umask 0' >>/root/.bashrc + WORKDIR /code/ ################################################################################