tests/docker/run: don't source /etc/profile
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 26 Sep 2017 13:36:22 +0000 (14:36 +0100)
committerFam Zheng <famz@redhat.com>
Fri, 29 Sep 2017 03:14:15 +0000 (11:14 +0800)
The usual behaviour of /etc/profile is to set the default PATH for
users. This runs into problems when we have updated PATH in our
dockerfile e.g. to access a cross-compiler in a non-standard
location. It shouldn't be needed anyway as we inherit the env from the
image when it was setup.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
CC: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170926133622.14991-1-alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/run

index 0fd2f358ce0c15b4ca0b674f19384e67eb494dbc..642084bcb8a2822f218c3aa83d8502192c93b0ea 100755 (executable)
@@ -18,7 +18,6 @@ fi
 BASE="$(dirname $(readlink -e $0))"
 
 # Prepare the environment
-. /etc/profile
 export PATH=/usr/lib/ccache:$PATH
 
 if test -n "$J"; then