diff mbox series

[PULL,3/5] tests/docker/run: don't source /etc/profile

Message ID 20170929031831.10179-4-famz@redhat.com
State New
Headers show
Series None | expand

Commit Message

Fam Zheng Sept. 29, 2017, 3:18 a.m. UTC
From: Alex Bennée <alex.bennee@linaro.org>


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 | 1 -
 1 file changed, 1 deletion(-)

-- 
2.13.5
diff mbox series

Patch

diff --git a/tests/docker/run b/tests/docker/run
index 0fd2f358ce..642084bcb8 100755
--- a/tests/docker/run
+++ b/tests/docker/run
@@ -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