diff options
author | hongbo tian <hongbo.tianhongbo@huawei.com> | 2016-12-13 01:53:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-13 01:53:21 +0000 |
commit | 098f6a3ccd606adb3f266e9324ef67368fe420d1 (patch) | |
tree | da69b94de6c7a56bffe77b08b30ba648084e6080 /dovetail/run.py | |
parent | a875b9d4ff6b5c8492f38ea87f8e11c02ebe66b9 (diff) | |
parent | 938f256fc4847e878870fa3037eabc7be970f0ea (diff) |
Merge "dovetail tool: add debug option to control the log level showing in screen"
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-x | dovetail/run.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py index 724dc305..d9bc0aaa 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('================================================') |