diff options
author | xudan <xudan16@huawei.com> | 2017-08-13 23:36:42 -0400 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-08-15 03:15:19 -0400 |
commit | 5e261c5ac601ba48bdf358de184337a1be954ff4 (patch) | |
tree | 526b4151af3b4a85f9f9077b6c89584d63da64d7 /dovetail/container.py | |
parent | 4ee77d5799f1ba5011d11a576a25bdcaeac74187 (diff) |
Adapt Functest cvp.0.5.0 docker image
In order to use functest cvp.0.5.0, Dovetail tool needs some adaptions.
Change-Id: I9d0a23791c246a6c4961f229eaeb1f52f9b4995a
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/container.py b/dovetail/container.py index ede50a80..f3d08373 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -223,6 +223,13 @@ class Container(object): dest_path = '/home/opnfv/functest/images' Container.pre_copy(container_id, src_path, dest_path) + if type.lower() == 'functest': + prefix_path = dt_cfg.dovetail_config[type]['config']['dir'] + file_name = dt_cfg.dovetail_config['cirros_image'] + src_path = os.path.join(prefix_path, 'pre_config', file_name) + dest_path = '/home/opnfv/functest/images' + Container.pre_copy(container_id, src_path, dest_path) + if type.lower() == 'yardstick': cls.set_yardstick_conf_file(container_id) |