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
3f2fbc4c
Unverified
Commit
3f2fbc4c
authored
Jul 21, 2020
by
Remi Collet
Committed by
GitHub
Jul 21, 2020
Browse files
Fix deprecated tail syntax in tests (#7543)
parent
4e8f2d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/support/util.tcl
View file @
3f2fbc4c
...
@@ -119,7 +119,7 @@ proc wait_for_log_message {srv_idx pattern from_line maxtries delay} {
...
@@ -119,7 +119,7 @@ proc wait_for_log_message {srv_idx pattern from_line maxtries delay} {
set retry $maxtries
set retry $maxtries
set stdout
[
srv $srv_idx stdout
]
set stdout
[
srv $srv_idx stdout
]
while
{
$retry
}
{
while
{
$retry
}
{
set result
[
exec tail +$from_line < $stdout
]
set result
[
exec tail
-n
+$from_line < $stdout
]
set result
[
split $result
"
\n
"
]
set result
[
split $result
"
\n
"
]
foreach line $result
{
foreach line $result
{
if
{[
string match $pattern $line
]}
{
if
{[
string match $pattern $line
]}
{
...
...
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