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
c96ece9f
Unverified
Commit
c96ece9f
authored
Oct 22, 2020
by
Oran Agra
Committed by
GitHub
Oct 22, 2020
Browse files
improve verbose logging on failed test. print log file lines (#7938)
parent
843a13e8
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/support/util.tcl
View file @
c96ece9f
...
@@ -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