From 4ae53d6e1a7f83bbdb8f6d5bc7a1c2f4dc02eb04 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Fri, 25 Aug 2017 04:37:58 +0000 Subject: 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 --- functest/ci/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/ci') 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() -- cgit 1.2.3-korg