Commit af907e4b authored by Remi Collet's avatar Remi Collet Committed by Oran Agra
Browse files

Fix deprecated tail syntax in tests (#7543)


(cherry picked from commit 3f2fbc4c)
parent d2f09a05
...@@ -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]} {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment