From: Samuli Silvius Date: Thu, 9 May 2019 10:27:02 +0000 (+0300) Subject: Source /etc/environment for tests X-Git-Tag: 0.4.0~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F87344%2F1;p=multicloud%2Fk8s.git Source /etc/environment for tests After KUD deployment (at least aio.sh), if running related tests immediately in the same shell session, system wide environment variables (/etc/environment) are not effective. This commit sources /etc/environment in commonly used _functions.sh. Issue-ID: MULTICLOUD-619 Change-Id: I75cccdd8bdc8a67b92239704160331c58ad69d08 Signed-off-by: Samuli Silvius --- diff --git a/kud/tests/_functions.sh b/kud/tests/_functions.sh index c25d1f2f..5efb56fe 100755 --- a/kud/tests/_functions.sh +++ b/kud/tests/_functions.sh @@ -12,6 +12,8 @@ set -o errexit set -o nounset set -o pipefail +source /etc/environment + function print_msg { local msg=$1 local RED='\033[0;31m'