summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/run_posca.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/posca/run_posca.py')
-rwxr-xr-xtestsuites/posca/run_posca.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/testsuites/posca/run_posca.py b/testsuites/posca/run_posca.py
index 9f90b3c7..48376b54 100755
--- a/testsuites/posca/run_posca.py
+++ b/testsuites/posca/run_posca.py
@@ -8,32 +8,36 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-import os
import sys
import subprocess
INTERPRETER = "/usr/bin/python"
-#------------------------------------------------------
+# ------------------------------------------------------
# run posca testcase
# ------------------------------------------------------
+
+
def posca_run(arg):
- print "========== run posca ==========="
+ print("========== run posca ==========")
if(arg == "factor_system_bandwidth"):
- print "========== run posca_system_bandwidth ==========="
- cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py'
- pargs = [INTERPRETER,cmd]
+ print("========== run posca_system_bandwidth ===========")
+ cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_script/\
+ posca_factor_system_bandwidth.py'
+ pargs = [INTERPRETER, cmd]
sub_result = subprocess.Popen(pargs)
sub_result.wait()
+
def posca_env_check():
- print "========== posca env check ==========="
+ print("========== posca env check ===========")
+
def main():
- para_testname = sys.argv[0]
+ # para_testname = sys.argv[0]
para_test_arg = sys.argv[1]
posca_env_check()
posca_run(para_test_arg)
sys.exit(0)
-if __name__=='__main__':
+if __name__ == '__main__':
main()