diff options
author | Yu Yang (Gabriel) <Gabriel.yuyang@huawei.com> | 2018-03-15 07:47:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-15 07:47:10 +0000 |
commit | 28ac6b8788b3acc561c35c9946f73abb735c1df1 (patch) | |
tree | 5a7f7bbdb146e1e00d047e6a6d7b912c6b74d92c | |
parent | 9400c02df69737daf14644d1113ac9c1173fa70a (diff) | |
parent | b8b65fbc102f632a1c83cd3fc67dc2b921902a8a (diff) |
Merge "support hosts file copy"
-rw-r--r-- | testsuites/run_testsuite.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/run_testsuite.py b/testsuites/run_testsuite.py index e0f46248..70e6d8c9 100644 --- a/testsuites/run_testsuite.py +++ b/testsuites/run_testsuite.py @@ -36,6 +36,14 @@ LOG = log.Logger(__name__).getLogger() # ------------------------------------------------------ +def copy_hosts_file(): + 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') + LOG.info("Done with copying hosts file to Bottlenecks-Yardstick") + + def posca_testcase_run(testsuite, testcase_script, test_config): module_string = "testsuites.%s.testcase_script.%s" % (testsuite, @@ -132,6 +140,7 @@ def main(): test_level = sys.argv[1] test_name = sys.argv[2] REPORT = sys.argv[3] + copy_hosts_file() testsuite_run(test_level, test_name, REPORT) |