summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-01-11 07:55:14 -0500
committerMatthewLi <matthew.lijun@huawei.com>2017-01-11 08:08:48 -0500
commit3114be6f8c77962e27551645af1859c51a110600 (patch)
tree65d7affa8a8e627b369d8633ec63498f26660fdb /dovetail/run.py
parent0c57358d86d0a1d155b66e3af015be5be7e80e79 (diff)
dovetail tool: switch logging to proper usage
JIRA: DOVETAIL-178 Change-Id: Ica814d4ff634c9159e4ecca888b8cc0f6c16e624 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 85e65667..1fb0a89a 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -44,11 +44,11 @@ def run_test(testsuite, testarea, logger):
duration = 0
for testcase_name in testarea_list:
- logger.info('>>[testcase]: %s' % (testcase_name))
+ logger.info('>>[testcase]: %s', testcase_name)
testcase = Testcase.get(testcase_name)
if testcase is None:
logger.error('test case %s is not defined in testcase folder, \
- skipping' % (testcase_name))
+ skipping', testcase_name)
continue
run_testcase = True
@@ -155,16 +155,16 @@ def main(*args, **kwargs):
create_logs()
logger = dt_logger.Logger('run').getLogger()
logger.info('================================================')
- logger.info('Dovetail compliance: %s!' % (kwargs['testsuite']))
+ logger.info('Dovetail compliance: %s!', (kwargs['testsuite']))
logger.info('================================================')
validate_input(kwargs, dt_cfg.dovetail_config['validate_input'], logger)
configs = filter_config(kwargs, logger)
if configs is not None:
dt_cfg.update_config(configs)
- logger.info('Your new envs for functest: %s' %
+ logger.info('Your new envs for functest: %s',
dt_cfg.dovetail_config['functest']['envs'])
- logger.info('Your new envs for yardstick: %s' %
+ logger.info('Your new envs for yardstick: %s',
dt_cfg.dovetail_config['yardstick']['envs'])
testarea = kwargs['testarea']
@@ -181,8 +181,8 @@ def main(*args, **kwargs):
duration = run_test(testsuite_yaml, testarea, logger)
Report.generate(testsuite_yaml, testarea, duration)
else:
- logger.error('invalid input commands, testsuite %s testarea %s' %
- (kwargs['testsuite'], testarea))
+ logger.error('invalid input commands, testsuite %s testarea %s',
+ kwargs['testsuite'], testarea)
dt_cfg.load_config_files()