You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/functional/test_framework/test_framework.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -167,14 +167,16 @@ def main(self):
167
167
168
168
ifsuccess==TestStatus.PASSED:
169
169
self.log.info("Tests successful")
170
-
sys.exit(TEST_EXIT_PASSED)
170
+
exit_code=TEST_EXIT_PASSED
171
171
elifsuccess==TestStatus.SKIPPED:
172
172
self.log.info("Test skipped")
173
-
sys.exit(TEST_EXIT_SKIPPED)
173
+
exit_code=TEST_EXIT_SKIPPED
174
174
else:
175
175
self.log.error("Test failed. Test logging available at %s/test_framework.log", self.options.tmpdir)
176
-
logging.shutdown()
177
-
sys.exit(TEST_EXIT_FAILED)
176
+
self.log.error("Hint: Call {} '{}' to consolidate all logs".format(os.path.normpath(os.path.dirname(os.path.realpath(__file__)) +"/../combine_logs.py"), self.options.tmpdir))
0 commit comments