X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/9184f8fd006ab608b5e6f9b0fa45490d08ff443a..0bd6d68e34bc41cd80cd7fc44aab9cf3884de8dc:/tests/support/server.tcl?ds=sidebyside diff --git a/tests/support/server.tcl b/tests/support/server.tcl index b1ab38fc..35c1cb87 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -252,7 +252,7 @@ proc start_server {options {code undefined}} { while 1 { # check that the server actually started and is ready for connections - if {[exec cat $stdout | grep "ready to accept" | wc -l] > 0} { + if {[exec grep "ready to accept" | wc -l < $stdout] > 0} { break } after 10