Fix deprecated tail syntax in tests (#7543)

This commit is contained in:
Remi Collet 2020-07-21 08:07:54 +02:00 committed by GitHub
parent 4e8f2d6881
commit 3f2fbc4c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]} {