Skip to contentSkip to conversation

tests/docker/run: don't source /etc/profile

RFC PATCH Applied Alex Bennée 3 participants 3 messages Sep 26, 2017 – Sep 27, 2017

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 tests/docker/run: don't source /etc/profile

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.

CC Philippe Mathieu-Daudé <[email protected]>
---
 tests/docker/run | 1 -
 1 file changed, 1 deletion(-)
tests/docker/run +0 -1
index c8f940de15..b87f8ef03c 100755
@@ -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
Signature · 1 line
2.14.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Alex Bennée

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.

Quoted 17 lines
---
  tests/docker/run | 1 -
  1 file changed, 1 deletion(-)
tests/docker/run +0 -1
index c8f940de15..b87f8ef03c 100755
@@ -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
Applied
#2 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 7 lines · Alex Bennée

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.

Queued, thanks.

Fam