diff options
author | liyin <liyin11@huawei.com> | 2017-02-07 15:29:50 +0800 |
---|---|---|
committer | Ace Lee <liyin11@huawei.com> | 2017-02-09 05:10:52 +0000 |
commit | 0a29e9ec59e21dc46db0497187cc9d0de0844b05 (patch) | |
tree | 5222fd128df289fa3f6e56621c1a8af273e1eab3 /testsuites/posca/run_posca.py | |
parent | fd7583e843493495e5e15f62b5f7d9ca484bf167 (diff) |
Log_dir bug fix&Add function of test_ip init
JIRA:BOTTLENECK-129
This patch fix the error of log_dir can't be found.
And change several thing:
1.Add if config don't have test_ip, it will use local:8888 as test ip.
2.Fix the bug in setup.py.
3.Add parser init to logger file.
Change-Id: I808c69e2b2ff3c04f271cc7f3e14e1ab406a4d1b
Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'testsuites/posca/run_posca.py')
-rwxr-xr-x | testsuites/posca/run_posca.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py index fcf35d5b..a687e00e 100755 --- a/testsuites/posca/run_posca.py +++ b/testsuites/posca/run_posca.py @@ -39,15 +39,9 @@ def posca_run(test_level, test_name): elif test_level == "teststory": config = conf_parser.Parser.story_read("posca", test_name) for testcase in config: - print(config[testcase]) + LOG.info("Begin to run %s testcase in POSCA testsuite", testcase) posca_testcase_run(testcase, config[testcase]) - if con_dic["dashboard"] == "y": - cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_dashboard/\ -system_bandwidth.py' - pargs = [INTERPRETER, cmd] - LOG.info("\nBegin to establish dashboard.") - sub_result = subprocess.Popen(pargs) - sub_result.wait() + LOG.info("End of %s testcase in POSCA testsuite", testcase) def main(): @@ -58,4 +52,3 @@ def main(): if __name__ == '__main__': main() - |