diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-08-25 04:37:58 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-08-25 04:41:14 +0000 |
commit | 4ae53d6e1a7f83bbdb8f6d5bc7a1c2f4dc02eb04 (patch) | |
tree | 59829eafac45fe4c7ad50c2161a47004e7b60034 /functest | |
parent | ad44bfd97555a7372269db539857fd53fffb0460 (diff) |
Fix args parsing in run_tests
By default, 'report' and 'noclean' are both False, so
self.clean_flag shoule be True and self.report_flag
should be False.
Change-Id: I4935f70bd124fbb996dcaa73e01e0e61cd0184e1
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest')
-rw-r--r-- | functest/ci/run_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index 87e3d37b..feafa89e 100644 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -189,9 +189,9 @@ class Runner(object): def main(self, **kwargs): if 'noclean' in kwargs: - self.clean_flag = False + self.clean_flag = not kwargs['noclean'] if 'report' in kwargs: - self.report_flag = True + self.report_flag = kwargs['report'] try: if 'test' in kwargs: self.source_rc_file() |