summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-04-19 07:02:16 +0000
committerxudan <xudan16@huawei.com>2017-04-19 07:02:16 +0000
commitb1030e6099f38b226c8ef86a2a4711aca8c1822a (patch)
tree6d8e8b2465fd13af5b6f8dc0421eb81584a15410 /dovetail/run.py
parent2ffa3fc85027ef9ac291c6a22bd41bfa2c66ab4c (diff)
set dovetail.log level by command line
JIRA: DOVETAIL-400 1. set both the dovetail.log and screen log level by command --debug. 2. if --report http://testapi_url:port/api/v1/, change it into --report http://testapi_url:port/api/v1 Change-Id: I7cf697d4ac9072fc2d302a67ccde0f452d84be8f 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 5a902d7f..7386790c 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -211,6 +211,8 @@ def main(*args, **kwargs):
dt_cfg.update_config(configs)
if kwargs['report']:
+ if(kwargs['report'].endswith('/')):
+ kwargs['report'] = kwargs['report'][0:kwargs['report'].rfind('/')]
dt_cfg.dovetail_config['report_dest'] = kwargs['report']
if kwargs['offline']: