Dump all thread stacks when a unit test runs too long
When a test hangs, the job log ends with the last test that finished.
It does not show where the process waits.
Set pytest's faulthandler_timeout. When one test runs longer than 300
seconds, pytest writes the stack of every thread to stderr and lets the
test continue. The log then names the blocked test and what it waits
for.
Change-Id: I9fdb40051d6ffe6ecc5aae5eea8df1180ea215dc
Signed-off-by: Christian Schwede <cschwede@mailbox.org>
(cherry picked from commit 34a0a6443a)
This commit is contained in:
1 parent
238727818d
commit
5e4b45fc17
1 file changed
+1