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

This commit is contained in:
Oran Agra 2020-10-22 11:34:54 +03:00 committed by GitHub
parent 843a13e88f
commit c96ece9f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]"
}
}