JIRA: BOTTLENECK-227
Operation of copying hosts file should follow the building of
Yardstick docker
Change-Id: I4d66efe8b823876a733d1877c26d1e0e263ca4da
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
(cherry picked from commit
7b61cfd2e0c7bed6004f82d11b4cdc37a2e12cad)
LOG.info("Begin copying hosts file to Bottlenecks-Yardstick")
os.system('cp /etc/hosts /tmp/hosts')
yardstick_docker = docker_env.docker_find('Bottlenecks-Yardstick')
LOG.info("Begin copying hosts file to Bottlenecks-Yardstick")
os.system('cp /etc/hosts /tmp/hosts')
yardstick_docker = docker_env.docker_find('Bottlenecks-Yardstick')
- docker_env.docker_exec_cmd(yardstick_docker, 'sudo cp -f /tmp/hosts /etc/hosts')
+ cp_cmd = 'sudo cp -f /tmp/hosts /etc/hosts'
+ docker_env.docker_exec_cmd(yardstick_docker, cp_cmd)
LOG.info("Done with copying hosts file to Bottlenecks-Yardstick")
LOG.info("Done with copying hosts file to Bottlenecks-Yardstick")
conf_parser.Parser.testcase_out_dir(testcase)
start_date = datetime.datetime.now()
docker_env_prepare(config[testcase])
conf_parser.Parser.testcase_out_dir(testcase)
start_date = datetime.datetime.now()
docker_env_prepare(config[testcase])
#try:
# posca_testcase_run(tester_parser[0], testcase, config[testcase])
#except Exception, e:
#try:
# posca_testcase_run(tester_parser[0], testcase, config[testcase])
#except Exception, e:
test_level = sys.argv[1]
test_name = sys.argv[2]
REPORT = sys.argv[3]
test_level = sys.argv[1]
test_name = sys.argv[2]
REPORT = sys.argv[3]
testsuite_run(test_level, test_name, REPORT)
testsuite_run(test_level, test_name, REPORT)