summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2016-12-01 06:38:51 +0000
committerxudan <xudan16@huawei.com>2016-12-05 00:56:41 +0000
commit938f256fc4847e878870fa3037eabc7be970f0ea (patch)
tree99132ef780e4b3f6558c1eea5b4506ddca0acb36 /dovetail/run.py
parentec43484e1c8c8123a0e45c78d6fcb5a8d5560b43 (diff)
dovetail tool: add debug option to control the log level showing in screen
1. add debug option in cmd_config.yml for controling log showing in screen. 2. rename existent DEBUG as CON_DEBUG because it is used for functest/yardstick container to control the log level. 3. fix the bug in function update_config_envs(). If one key is not in system's envs, os.environ[key] get an error with ErrorKey. JIRA: DOVETAIL-148 Change-Id: If3d75109f51e2e91743b8f1134a76da42e57383a Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 0c57b4ed..17f476b6 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -141,6 +141,8 @@ def clean_results_dir():
def main(*args, **kwargs):
"""Dovetail compliance test entry!"""
clean_results_dir()
+ if kwargs['debug']:
+ os.environ['DEBUG'] = kwargs['debug']
create_logs()
logger = dt_logger.Logger('run').getLogger()
logger.info('================================================')