X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=testsuites%2Fposca%2Frun_posca.py;h=3e23a37ad10a875bc0baef5f829a5f1a7ffaa575;hb=58c97253eaaf72f73924837fca4ddcb5cb8a5d94;hp=a687e00e86e9762131bb372c1e846a8b8f24eec3;hpb=0a29e9ec59e21dc46db0497187cc9d0de0844b05;p=bottlenecks.git diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py index a687e00e..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 # ------------------------------------------------------ @@ -40,13 +41,15 @@ def posca_run(test_level, test_name): config = conf_parser.Parser.story_read("posca", test_name) for testcase in config: 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]) 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)