Unverified Commit c96ece9f authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

improve verbose logging on failed test. print log file lines (#7938)

parent 843a13e8
...@@ -142,6 +142,10 @@ proc wait_for_log_messages {srv_idx patterns from_line maxtries delay} { ...@@ -142,6 +142,10 @@ proc wait_for_log_messages {srv_idx patterns from_line maxtries delay} {
after $delay after $delay
} }
if {$retry == 0} { if {$retry == 0} {
if {$::verbose} {
puts "content of $stdout from line: $from_line:"
puts [exec tail -n +$from_line < $stdout]
}
fail "log message of '$patterns' not found in $stdout after line: $from_line till line: [expr $next_line -1]" fail "log message of '$patterns' not found in $stdout after line: $from_line till line: [expr $next_line -1]"
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment