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
af907e4b
Commit
af907e4b
authored
Jul 21, 2020
by
Remi Collet
Committed by
Oran Agra
Sep 01, 2020
Browse files
Fix deprecated tail syntax in tests (#7543)
(cherry picked from commit
3f2fbc4c
)
parent
d2f09a05
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/support/util.tcl
View file @
af907e4b
...
@@ -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