summaryrefslogtreecommitdiffstats
path: root/src/test/testcases/testGetCapabilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testcases/testGetCapabilities.py')
-rwxr-xr-xsrc/test/testcases/testGetCapabilities.py28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/test/testcases/testGetCapabilities.py b/src/test/testcases/testGetCapabilities.py
index 5fd8491e..51b5c780 100755
--- a/src/test/testcases/testGetCapabilities.py
+++ b/src/test/testcases/testGetCapabilities.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2018
+# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
@@ -24,6 +24,7 @@
# IBM_PROLOG_END_TAG
import sys
sys.path.append("targets/p9_nimbus/sbeTest" )
+sys.path.append("targets/p9_axone/sbeTest" )
import testUtil
err = False
@@ -61,9 +62,6 @@ EXPDATA3 = [0xa8,0x0,0x0,0x03, #getcapability/getSbeFFDC/quiesce
#-------------------------------------------------
def main( ):
( rc, out ) = quiet_run_command( "sbe-ddlevel 0", output_modes.regular )
- if(rc == "DD1"):
- print "Not running Get Capabilities on DD1"
- return
testUtil.runCycles( 10000000 )
testUtil.writeUsFifo( TESTDATA )
testUtil.writeEot( )
@@ -78,12 +76,22 @@ def main( ):
#-------------------------------------------------
# Calling all test code
#-------------------------------------------------
-main()
+if testUtil.getMachineName() == "axone":
+ try:
+ main()
+ except:
+ print ( "\nTest Suite completed with error(s)" )
+ testUtil.collectFFDC()
+ raise()
-if err:
- print ("\nTest Suite completed with error(s)")
- #sys.exit(1)
+ print ( "\nTest Suite completed with no errors" )
else:
- print ("\nTest Suite completed with no errors")
- #sys.exit(0);
+ main()
+
+ if err:
+ print ("\nTest Suite completed with error(s)")
+ #sys.exit(1)
+ else:
+ print ("\nTest Suite completed with no errors")
+ #sys.exit(0);
OpenPOWER on IntegriCloud