From ee73e52450a9318dd7a9548a599b39ee203cfe2a Mon Sep 17 00:00:00 2001 From: Sergii Kipot Date: Mon, 2 Jan 2017 19:05:43 +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: Ie8c1710488974bc193c930f5df10909114371eb3 --- t/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/Dockerfile b/t/Dockerfile index 6669cb0..22ba96c 100644 --- a/t/Dockerfile +++ b/t/Dockerfile @@ -12,6 +12,11 @@ RUN apt-get install --assume-yes git abi-compliance-checker 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/ ################################################################################