]> git.saurik.com Git - redis.git/blobdiff - tests/support/server.tcl
Make sure that SELECT argument is an integer or return an error.
[redis.git] / tests / support / server.tcl
index b1ab38fc1089afcfae386c14d16f5ff041fecc3f..35c1cb87076444b9d9d1c7b4f2a56b782e0d0088 100644 (file)
@@ -252,7 +252,7 @@ proc start_server {options {code undefined}} {
 
         while 1 {
             # check that the server actually started and is ready for connections
 
         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
                 break
             }
             after 10