diff options
author | hongbo tian <hongbo.tianhongbo@huawei.com> | 2016-11-29 02:22:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-29 02:22:49 +0000 |
commit | b9929410665d9809669b307b04904312d785be5a (patch) | |
tree | 2e5e87129143ce7205fcf407269bad075468127e /dovetail/conf | |
parent | 75dd45462f46c711f950c96aac783932cb7ec1a4 (diff) | |
parent | 3cff5221e332c83d143a7150217513ca7f3e1ed1 (diff) |
Merge "dovetail tool: change CI_DEBUG to DEBUG"
Diffstat (limited to 'dovetail/conf')
-rw-r--r-- | dovetail/conf/cmd_config.yml | 6 | ||||
-rw-r--r-- | dovetail/conf/dovetail_config.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/dovetail/conf/cmd_config.yml b/dovetail/conf/cmd_config.yml index 04001774..4e3d0110 100644 --- a/dovetail/conf/cmd_config.yml +++ b/dovetail/conf/cmd_config.yml @@ -31,11 +31,11 @@ cli: - '--DEPLOY_TYPE' - '-T' help: 'DEPLOY_TYPE of the system under test (SUT).' - CI_DEBUG: + DEBUG: flags: - - '--CI_DEBUG' + - '--DEBUG' - '-d' - help: 'CI_DEBUG for showing debug log.' + help: 'DEBUG for showing debug log.' non-envs: testsuite: flags: diff --git a/dovetail/conf/dovetail_config.py b/dovetail/conf/dovetail_config.py index 5fe1e7b5..8fa1a6d2 100644 --- a/dovetail/conf/dovetail_config.py +++ b/dovetail/conf/dovetail_config.py @@ -55,6 +55,8 @@ class DovetailConfig: @classmethod def update_config_envs(cls, script_type, key): + if key == 'DEBUG': + os.environ['CI_DEBUG'] = os.environ[key] envs = cls.dovetail_config[script_type]['envs'] old_value = re.findall(r'\s+%s=(.*?)(\s+|$)' % key, envs) if old_value == []: |