Thread (12 messages) 12 messages, 1 author, 1d ago
WARM1d

[PATCH 08/11] tests: dump log on start_stalld_with_log failure

From: Wander Lairson Costa <hidden>
Date: 2026-07-10 13:39:17
Subsystem: the rest · Maintainer: Linus Torvalds

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help