Skip to content

Commit 86b573b

Browse files
committed
add stacktrace dump to tesflows tests
1 parent 58efcef commit 86b573b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/testflows/clickhouse_backup/regression.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
# of Altinity LTD. Any dissemination of this information or
66
# reproduction of this material is strictly forbidden unless
77
# prior written permission is obtained from Altinity LTD.
8+
import faulthandler
89
import os
910
import shutil
11+
import signal
1012
import sys
1113
import yaml
14+
15+
# run.sh kills a hung suite via `timeout` (SIGTERM), dump all thread stacks to stderr first to see where it hung,
16+
# chain=True keeps the default SIGTERM termination, so `timeout` still exits with 124
17+
faulthandler.register(signal.SIGTERM, all_threads=True, chain=True)
1218
import testflows.settings as testflows_settings
1319
from testflows.core import *
1420

0 commit comments

Comments
 (0)