summaryrefslogtreecommitdiffstats
path: root/src/test/testcases/testPSUReadSbeMem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testcases/testPSUReadSbeMem.py')
-rw-r--r--src/test/testcases/testPSUReadSbeMem.py25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/test/testcases/testPSUReadSbeMem.py b/src/test/testcases/testPSUReadSbeMem.py
index a91fbc48..4f53a24e 100644
--- a/src/test/testcases/testPSUReadSbeMem.py
+++ b/src/test/testcases/testPSUReadSbeMem.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2017
+# Contributors Listed Below - COPYRIGHT 2017,2019
# [+] International Business Machines Corp.
#
#
@@ -25,6 +25,7 @@
import sys
sys.path.append("targets/p9_nimbus/sbeTest" )
+sys.path.append("targets/p9_axone/sbeTest" )
import testPSUUtil
import testRegistry as reg
import testUtil
@@ -147,12 +148,22 @@ def main():
print "SUCCESS: read seeprom offset not aligned"
if __name__ == "__main__":
- 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