From 9bb85082e261f5df9dbd0a6bbeb6e315d8f67cdc Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Wed, 27 Mar 2019 09:38:14 +0200 Subject: Fix VVP test case This patch adds check for no environment variables provided to container configuration. Furthermore, it changes the check results file to a list of check result files. Change-Id: I2112ee1fd4b3156608d8a27dd3b9c90dbe35a24c Signed-off-by: Stamatis Katsaounis Co-Authored-By: Panagiotis Karalis --- dovetail/container.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dovetail/container.py') diff --git a/dovetail/container.py b/dovetail/container.py index 250bb54a..71cb4123 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -60,7 +60,9 @@ class Container(object): if not shell: return None env_list = dt_utils.get_value_from_dict('envs', project_cfg) - kwargs['environment'] = [env for env in env_list if env is not None] + if env_list: + kwargs['environment'] = \ + [env for env in env_list if env is not None] volume_list = dt_utils.get_value_from_dict('volumes', project_cfg) kwargs['volumes'] = [vol for vol in volume_list if vol is not None] kwargs['extra_hosts'] = dt_utils.get_hosts_info(self.logger) -- cgit 1.2.3-korg