From f4129a00c88f5ff1e21e139340956df50fadb456 Mon Sep 17 00:00:00 2001 From: Samuli Silvius Date: Thu, 9 May 2019 13:27:02 +0300 Subject: 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 --- kud/tests/_functions.sh | 2 ++ 1 file changed, 2 insertions(+) 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' -- cgit 1.2.3-korg