Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: as in oskar show stacktraces #19052

Merged
merged 1 commit into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
as in oskar show stacktraces
  • Loading branch information
dothebart committed May 19, 2023
commit dfe94168b8a5cb8c70acb907661169122f6e054b
6 changes: 4 additions & 2 deletions scripts/test/testing_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sys
import time
from threading import Thread, Lock
import traceback
from multiprocessing import Process
import zipfile

Expand Down Expand Up @@ -123,10 +124,11 @@ def testing_runner(testing_instance, this, arangosh):
except FileExistsError as ex:
logging.error("can't expand the temp directory %s to %s", ex, final_name)
except Exception as ex:
logging.exception("Python exception caught during test execution")
stack = ''.join(traceback.TracebackException.from_exception(ex).format())
logging.exception("Python exception caught during test execution: ")
this.crashed = True
this.success = False
this.summary = f"Python exception caught during test execution: {ex}"
this.summary = f"Python exception caught during test execution: {ex}\n{stack}"
this.finish = datetime.now(tz=None)
this.delta = this.finish - this.start
this.delta_seconds = this.delta.total_seconds()
Expand Down