diff options
author | Martin Kulhavy <martin.kulhavy@nokia.com> | 2017-08-24 13:26:13 +0300 |
---|---|---|
committer | Martin Kulhavy <martin.kulhavy@nokia.com> | 2017-08-24 13:26:13 +0300 |
commit | 7dc5d9b824f7d24f2a52ea04b3c2ad530d2db247 (patch) | |
tree | 80a8f1cd05f75ceed48fe4893ba883a09d83ef6c /functest/ci/run_tests.py | |
parent | 4a228ab09e59c5dfa004df0f54df7c20eba2bc0a (diff) |
Prevent KeyError during main args parsing
Change-Id: Ia340c79c82b891e921379c7c0186eaa238117b13
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
Diffstat (limited to 'functest/ci/run_tests.py')
-rw-r--r-- | functest/ci/run_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index 63a50dea..87e3d37b 100644 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -188,12 +188,12 @@ class Runner(object): self.run_tier(tier) def main(self, **kwargs): - if kwargs['noclean']: + if 'noclean' in kwargs: self.clean_flag = False - if kwargs['report']: + if 'report' in kwargs: self.report_flag = True try: - if kwargs['test']: + if 'test' in kwargs: self.source_rc_file() logger.debug("Test args: %s", kwargs['test']) if self._tiers.get_tier(kwargs['test']): |