Make ./runtest --dump-logs dump logs on crash (#1117)

Until now, this flag only dumped logs on a failed assert in test case.
It is useful that this flag dumps logs on a crash as well.

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit is contained in:
Viktor Söderqvist 2024-10-06 19:40:36 +02:00 committed by GitHub
parent 0c49053214
commit 00c97979d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -697,8 +697,8 @@ proc start_server {options {code undefined}} {
dict set srv "skipleaks" 1
kill_server $srv
if {$::dump_logs && $assertion} {
# if we caught an assertion ($::num_failed isn't incremented yet)
if {$::dump_logs} {
# crash or assertion ($::num_failed isn't incremented yet)
# this happens when the test spawns a server and not the other way around
dump_server_log $srv
} else {