diff options
author | 2017-08-24 15:50:59 +0000 | |
---|---|---|
committer | 2017-08-24 15:50:59 +0000 | |
commit | f793114a359467deb494770c05689c87b1007707 (patch) | |
tree | 825449a73d23738e232e2a27863dafe66bd20d44 /functest | |
parent | a7c04235d89ab994fce7559395d7017f89c4d7ad (diff) | |
parent | 7dc5d9b824f7d24f2a52ea04b3c2ad530d2db247 (diff) |
Merge "Prevent KeyError during main args parsing"
Diffstat (limited to 'functest')
-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 63a50dea2..87e3d37ba 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']): |