Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
56d8ad93
Commit
56d8ad93
authored
Oct 22, 2020
by
Oran Agra
Browse files
improve verbose logging on failed test. print log file lines (#7938)
(cherry picked from commit
c96ece9f
)
parent
0103dc09
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/support/util.tcl
View file @
56d8ad93
...
@@ -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
]
"
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment