summaryrefslogtreecommitdiffstats
path: root/kud
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-05-09 13:27:02 +0300
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-05-09 13:27:02 +0300
commitf4129a00c88f5ff1e21e139340956df50fadb456 (patch)
treebc086fdb2db7ee5342e5615faf4297dc6a9d86bd /kud
parent3a6d8ecba65a9c99cd5c2542978465969ead1590 (diff)
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 <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud')
-rwxr-xr-xkud/tests/_functions.sh2
1 files changed, 2 insertions, 0 deletions
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'