improve verbose logging on failed test. print log file lines (#7938)
(cherry picked from commit c96ece9f5e7b80d65ca4d1a2b801effe68425c90)
This commit is contained in:
parent
0103dc09d2
commit
56d8ad932d
@ -142,6 +142,10 @@ proc wait_for_log_messages {srv_idx patterns from_line maxtries delay} {
|
||||
after $delay
|
||||
}
|
||||
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]"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user