diff options
Diffstat (limited to 'src/test/testcases/testPSUSetFFDCAddr.py')
-rw-r--r-- | src/test/testcases/testPSUSetFFDCAddr.py | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/test/testcases/testPSUSetFFDCAddr.py b/src/test/testcases/testPSUSetFFDCAddr.py index 5e0a3bc4..5e64c6c6 100644 --- a/src/test/testcases/testPSUSetFFDCAddr.py +++ b/src/test/testcases/testPSUSetFFDCAddr.py @@ -6,7 +6,8 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2016,2017 +# Contributors Listed Below - COPYRIGHT 2016,2019 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -101,12 +102,22 @@ def main(): regObj.ExecuteTestOp( testPSUUtil.simSbeObj, host_test_data_success ) 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); |