summaryrefslogtreecommitdiff
path: root/tests/cluster
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-10-08 10:17:01 +0200
committerantirez <antirez@gmail.com>2014-10-08 10:17:01 +0200
commit908be1dbebf3e9a5a6fdb80d391e58481ddd5005 (patch)
treef4435f47b3442785a03264a03f7de1de9d395684 /tests/cluster
parent5b47783d77d733f0019171d6db5d7841d43f1fef (diff)
downloadredis-908be1dbebf3e9a5a6fdb80d391e58481ddd5005.tar.gz
Cluster test: helpers/onlydots.tcl: detect EOF and exit.
Diffstat (limited to 'tests/cluster')
-rw-r--r--tests/cluster/tests/helpers/onlydots.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cluster/tests/helpers/onlydots.tcl b/tests/cluster/tests/helpers/onlydots.tcl
index 49040854a..4a6d1aee0 100644
--- a/tests/cluster/tests/helpers/onlydots.tcl
+++ b/tests/cluster/tests/helpers/onlydots.tcl
@@ -7,7 +7,9 @@ fconfigure stdin -buffering none
while 1 {
set c [read stdin 1]
- if {$c eq {.}} {
+ if {$c eq {}} {
+ exit 0; # EOF
+ } elseif {$c eq {.}} {
puts -nonewline .
flush stdout
}