From 9815c1ecff2e867d3640007910adb496fe46a4e9 Mon Sep 17 00:00:00 2001 From: Sergii Kipot Date: Mon, 2 Jan 2017 19:16:59 +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: If15ffec65c680c6c01c91327a511cdde2614ff18 --- t/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/Dockerfile b/t/Dockerfile index 5f72046..cac55de 100644 --- a/t/Dockerfile +++ b/t/Dockerfile @@ -14,6 +14,11 @@ RUN apt-get update && apt-get install --assume-yes lua5.1 lua-unit lua-lemock lu 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/ ################################################################################