file_after)
docker_env.docker_exec_cmd(yardstick_contain,
cmd)
- cmd = "sed -i '13s/http/file/g' /etc/yardstick/yardstick.conf"
+ cmd = "sed -i '12s/http/file/g' /etc/yardstick/yardstick.conf"
docker_env.docker_exec_cmd(yardstick_contain,
cmd)
p = subprocess.Popen(". %s; env" % rc_file, stdout=subprocess.PIPE,
shell=True)
output = p.communicate()[0]
- env = dict((line.split('=', 1) for line in output.splitlines()))
+ output_lines = output.splitlines()
+ del output_lines[5]
+ env = dict((line.split('=', 1) for line in output_lines))
os.environ.update(env)
return env