summaryrefslogtreecommitdiffstats
path: root/src/test/testcases/testExecutorPSU.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testcases/testExecutorPSU.py')
-rw-r--r--src/test/testcases/testExecutorPSU.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/testcases/testExecutorPSU.py b/src/test/testcases/testExecutorPSU.py
index c01287b4..cac232af 100644
--- a/src/test/testcases/testExecutorPSU.py
+++ b/src/test/testcases/testExecutorPSU.py
@@ -36,7 +36,7 @@
# 1.0 gkeishin 29/03/16 Initial create
#############################################################
'''
-
+from __future__ import print_function
import testPSUUtil
import testRegistry as reg
sys.path.append("targets/p9_nimbus/sbeTest" )
@@ -119,25 +119,25 @@ sample_test_data = (
def main():
# Intialize the class obj instances
- print "\n Initializing Registry instances ...."
+ print("\n Initializing Registry instances ....")
regObj = testPSUUtil.registry() # Registry obj def for operation
- print "\n Execute SBE Test set [ PSU ] ...\n"
+ print("\n Execute SBE Test set [ PSU ] ...\n")
# Sim obj Target Test set Raise Exception
rc_test = regObj.ExecuteTestOp(testPSUUtil.simSbeObj,sbe_test_data, True)
if rc_test != testPSUUtil.SUCCESS:
- print " SBE Test data set .. [ Failed ] .."
+ print(" SBE Test data set .. [ Failed ] ..")
else:
- print " SBE Test data set .. [ OK ] "
- print "\n Poll on Host side for INTR ...\n"
+ print(" SBE Test data set .. [ OK ] ")
+ print("\n Poll on Host side for INTR ...\n")
# Sim obj Target Test set Max timedout
rc_intr = regObj.pollingOn(testPSUUtil.simSbeObj,host_test_data,20)
if rc_intr == testPSUUtil.SUCCESS:
- print " Interrupt Event Recieved .. Success !!"
+ print(" Interrupt Event Recieved .. Success !!")
else:
- print " Interrupt not Recieved.. Exiting .."
+ print(" Interrupt not Recieved.. Exiting ..")
- print "\n"
+ print("\n")
if __name__=="__main__":
if testUtil.getMachineName() == "axone":
OpenPOWER on IntegriCloud