Skip to content

Commit

Permalink
Sentinel test: minor fixes to --pause-on-error.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Feb 23, 2014
1 parent afd3db1 commit 09dec36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/sentinel.tcl
Expand Up @@ -124,11 +124,13 @@ proc main {} {
# on error in order to give the developer a chance to understand more about
# the error condition while the instances are still running.
proc pause_on_error {} {
puts ""
puts [colorstr yellow "*** Please inspect the error now ***"]
puts "\nType \"continue\" to resume the test."
while {[gets stdin] ne {continue}} {
puts "> "
puts "\nType \"continue\" to resume the test.\n"
while 1 {
puts -nonewline "> "
flush stdout
if {[gets stdin] eq {continue}} break
}
}

Expand Down

0 comments on commit 09dec36

Please sign in to comment.