diff options
author | Samuli Silvius <s.silvius@partner.samsung.com> | 2019-05-09 13:27:02 +0300 |
---|---|---|
committer | Samuli Silvius <s.silvius@partner.samsung.com> | 2019-05-09 13:27:02 +0300 |
commit | f4129a00c88f5ff1e21e139340956df50fadb456 (patch) | |
tree | bc086fdb2db7ee5342e5615faf4297dc6a9d86bd /kud/tests | |
parent | 3a6d8ecba65a9c99cd5c2542978465969ead1590 (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/tests')
-rwxr-xr-x | kud/tests/_functions.sh | 2 |
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' |