From ab7055e7dafc6a1cf2f9b1daf755602ec437b9bf Mon Sep 17 00:00:00 2001 From: liyin Date: Wed, 30 Nov 2016 12:27:53 +0800 Subject: POSCA test case complete JIRA: BOTTLENECK-107 JIRA: BOTTLENECK-106 This patch has done the flowings: 1.Using the RESTful API form yardstick 2.Common function reuse. 3.If there is no test_ip it would use host ip and port as test_ip. 4.A little demo of dashboard. Now is can't work Change-Id: I1063176c762c40238019c73f5359f23bc5aab19c Signed-off-by: liyin --- testsuites/posca/run_posca.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testsuites/posca/run_posca.py') diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py index 48376b54..e5e11e9f 100755 --- a/testsuites/posca/run_posca.py +++ b/testsuites/posca/run_posca.py @@ -19,10 +19,11 @@ INTERPRETER = "/usr/bin/python" def posca_run(arg): print("========== run posca ==========") - if(arg == "factor_system_bandwidth"): + print(arg) + if(arg == "posca_factor_system_bandwidth"): print("========== run posca_system_bandwidth ===========") cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/\ - posca_factor_system_bandwidth.py' +posca_factor_system_bandwidth.py' pargs = [INTERPRETER, cmd] sub_result = subprocess.Popen(pargs) sub_result.wait() @@ -34,7 +35,7 @@ def posca_env_check(): def main(): # para_testname = sys.argv[0] - para_test_arg = sys.argv[1] + para_test_arg = sys.argv[2] posca_env_check() posca_run(para_test_arg) sys.exit(0) -- cgit 1.2.3-korg