X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=testsuites%2Fposca%2Frun_posca.py;h=3e23a37ad10a875bc0baef5f829a5f1a7ffaa575;hb=fc9a89857e121c2015a34e49c441cb234fa10c13;hp=fcf35d5b3cc3e1a6a3d5ccde5ea854f38ae3f203;hpb=cb7f830d3e4a2a5665ff95687838c80a353687bf;p=bottlenecks.git diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py index fcf35d5b..3e23a37a 100755 --- a/testsuites/posca/run_posca.py +++ b/testsuites/posca/run_posca.py @@ -16,13 +16,14 @@ and if you run "python run_posca", this will run testcase, posca_factor_system_bandwidth by default.''' import importlib +import sys import utils.parser as conf_parser import utils.logger as log INTERPRETER = "/usr/bin/python" LOG = log.Logger(__name__).getLogger() # ------------------------------------------------------ -# run posca testcase +# run testcase in posca # ------------------------------------------------------ @@ -39,23 +40,18 @@ 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) + config[testcase]['out_file'] =\ + conf_parser.Parser.testcase_out_dir(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(): - test_level = "testcase" - test_name = "posca_factor_system_bandwidth" + test_level = sys.argv[1] + test_name = sys.argv[2] posca_run(test_level, test_name) if __name__ == '__main__': main() -