summaryrefslogtreecommitdiffstats
path: root/dovetail/container.py
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2017-03-22 09:18:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-22 09:18:57 +0000
commit9d86d3b50a9617b6042cc8bf3f900c9b0573d888 (patch)
tree88a8e9abbeb2fa4bfd60e1baed128f61353eedc6 /dovetail/container.py
parentf7d0d72958b41ea6685457abea6dc4d83f4370c3 (diff)
parenta2ea88b923adba8f6fa0fc5ad92e6ce5e72db775 (diff)
Merge "dovetail tool: Bugfix about the prepare_env of yardstick and get the yardstick.log"
Diffstat (limited to 'dovetail/container.py')
-rw-r--r--dovetail/container.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/dovetail/container.py b/dovetail/container.py
index c90ff387..6d5a8d4f 100644
--- a/dovetail/container.py
+++ b/dovetail/container.py
@@ -79,8 +79,11 @@ class Container(object):
result_volume = ' -v %s:%s ' % (dovetail_config['result_dir'],
dovetail_config[type]['result']['dir'])
- cmd = 'sudo docker run %s %s %s %s %s %s /bin/bash' % \
- (opts, envs, sshkey, openrc, result_volume, docker_image)
+ log_volume = ' -v %s:%s ' % (dovetail_config['result_dir'],
+ dovetail_config[type]['result']['log'])
+ cmd = 'sudo docker run %s %s %s %s %s %s %s /bin/bash' % \
+ (opts, envs, sshkey, openrc, result_volume,
+ log_volume, docker_image)
dt_utils.exec_cmd(cmd, cls.logger)
ret, container_id = \
dt_utils.exec_cmd("sudo docker ps | grep " + docker_image +