diff options
author | Leo wang <grakiss.wanglei@huawei.com> | 2017-09-29 04:07:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-29 04:07:45 +0000 |
commit | 98e068ebee68513afc2b25acaa0c9112f447b80b (patch) | |
tree | e7e993e833b95f9cb2c02ed227fbce02fc3256ee /dovetail/container.py | |
parent | f0633486049e9e2d09001fd5c2a599a722f76d03 (diff) | |
parent | eac5857502dfad79c9eaa735b88bd07f60fd537c (diff) |
Merge "Bugfix: sdnvpn test cases failed due to wrong module name"
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dovetail/container.py b/dovetail/container.py index ff92fa4a..e8840de3 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -68,16 +68,20 @@ class Container(object): # These are all just used by Functest's function push_results_to_db. # And has nothing to do with DoveTail running test cases. - ins_type = os.getenv('INSTALLER_TYPE', "unknown") - scenario = os.getenv('DEPLOY_SCENARIO', "unknown") + ins_type = "unknown" + scenario = "unknown" ins_type = ''.join([" -e INSTALLER_TYPE=", ins_type]) scenario = ''.join([" -e DEPLOY_SCENARIO=", scenario]) + ins_ip = os.getenv('INSTALLER_IP', "192.168.0.0") + ins_ip = " -e INSTALLER_IP={}".format(ins_ip) # vpn testcase only runs when scenario name includes bgpvpn # functest requirements if 'sdnvpn' in testcase_name: - ins_type = "-e INSTALLER_TYPE=netvirt" - scenario = " -e DEPLOY_SCENARIO=bgpvpn" - envs = "%s %s" % (ins_type, scenario) + ins_type = os.getenv('INSTALLER_TYPE', "netvirt") + ins_type = " -e INSTALLER_TYPE={}".format(ins_type) + scenario = os.getenv('DEPLOY_SCENARIO', "bgpvpn") + scenario = " -e DEPLOY_SCENARIO={}".format(scenario) + envs = "%s %s %s" % (ins_type, scenario, ins_ip) dovetail_config = dt_cfg.dovetail_config if dovetail_config['report_dest'].startswith("http"): |