diff options
author | 2016-10-08 08:42:56 +0000 | |
---|---|---|
committer | 2016-10-09 09:11:39 +0000 | |
commit | afe86e71d491d7e7acb3b58035d4fc8b1a0f4513 (patch) | |
tree | d0ee223db045001574ff2979758af60c7f6c7391 /scripts/container.py | |
parent | bee8604246520fc40c1b3187dd2fde1896f64f35 (diff) |
Remove scripts in dovetail and use yarstick scripts to prepare environment
JIRA: DOVETAIL-20
Change-Id: I46a095d5714245a9399e3a33c72f5f4bc77a18bf
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'scripts/container.py')
-rw-r--r-- | scripts/container.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/container.py b/scripts/container.py index 3223c993..918edb33 100644 --- a/scripts/container.py +++ b/scripts/container.py @@ -17,7 +17,6 @@ class Container: container_list = {} has_pull_latest_image = {'yardstick':False, 'functest':False} - has_build_images = {'yardstick':False, 'functest':False} def __init__(cls): pass @@ -68,10 +67,3 @@ class Container: def exec_cmd(cls, container_id, sub_cmd, exit_on_error=False): cmd = 'sudo docker exec %s /bin/bash -c "%s"' % (container_id, sub_cmd) dt_utils.exec_cmd(cmd,logger,exit_on_error) - - @classmethod - def copy_file(cls, file_dir, container_id, container_dir): - for root, dirs, files in os.walk(file_dir): - for file_name in files: - cmd = 'sudo docker cp %s %s:%s' % (os.path.join(file_dir,file_name), container_id, container_dir) - dt_utils.exec_cmd(cmd, logger, exit_on_error = False) |