When stalld fails to initialize within the timeout,
start_stalld_with_log calls fail without first dumping the log file,
making CI failures harder to diagnose. Add the same log-dump pattern
used by assert_starvation_detected, assert_boost_detected and
assert_log_contains so the file contents appear in the output.
Signed-off-by: Wander Lairson Costa <redacted>
---
tests/helpers/test_helpers.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/helpers/test_helpers.sh b/tests/helpers/test_helpers.sh
index a2db0a9..85b1805 100755
--- a/tests/helpers/test_helpers.sh
+++ b/tests/helpers/test_helpers.sh
@@ -1157,6 +1157,8 @@ start_stalld_with_log() {
CLEANUP_PIDS+=("${STALLD_PID}")
if ! wait_for_stalld_ready "${log_file}" 15; then
+ log "Log contents:"
+ cat "${log_file}"
stop_stalld
fail "stalld did not initialize within 15s"
fi--
2.55.0