summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/run_posca.py
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2016-11-30 12:27:53 +0800
committerAce Lee <liyin11@huawei.com>2016-11-30 06:41:29 +0000
commitab7055e7dafc6a1cf2f9b1daf755602ec437b9bf (patch)
treed8ebcd665b3103eb7b0256af9f189b979f0d7005 /testsuites/posca/run_posca.py
parentafea25c89a2d1ae1b1c7ca6641652c0adc0dba02 (diff)
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 <liyin11@huawei.com>
Diffstat (limited to 'testsuites/posca/run_posca.py')
-rwxr-xr-xtestsuites/posca/run_posca.py7
1 files changed, 4 insertions, 3 deletions
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)