summaryrefslogtreecommitdiffstats
path: root/src/test/testcases/testSbeDump.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testcases/testSbeDump.py')
-rw-r--r--src/test/testcases/testSbeDump.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/test/testcases/testSbeDump.py b/src/test/testcases/testSbeDump.py
index f4f472a2..8e92f07d 100644
--- a/src/test/testcases/testSbeDump.py
+++ b/src/test/testcases/testSbeDump.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2016,2017
+# Contributors Listed Below - COPYRIGHT 2016,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
import testScomUtil
@@ -42,7 +43,7 @@ def main():
testUtil.runCycles(10000000)
# Generate FSPI rc
- testScomUtil.getscom(0x0A000000, [0x00, 0xFE, 0x00, 0x11], True)
+ testScomUtil.getscom(0x0A000027, [0x00, 0xFE, 0x00, 0x11], True)
testUtil.writeUsFifo(TESTDATA)
testUtil.writeEot()
@@ -120,12 +121,22 @@ def main():
#-------------------------------------------------
# Calling all test code
#-------------------------------------------------
-main()
-
-if err:
- print ("\nTest Suite completed with error(s)")
- #sys.exit(1)
+if testUtil.getMachineName() == "axone":
+ try:
+ main()
+ except:
+ print ( "\nTest Suite completed with error(s)" )
+ testUtil.collectFFDC()
+ raise()
+
+ 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