Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
09dec361
Commit
09dec361
authored
Feb 23, 2014
by
antirez
Browse files
Sentinel test: minor fixes to --pause-on-error.
parent
afd3db17
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/sentinel.tcl
View file @
09dec361
...
...
@@ -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
"
\n
Type
\"
continue
\"
to resume the test."
while
{[
gets stdin
]
ne
{
continue
}}
{
puts
"> "
puts
"
\n
Type
\"
continue
\"
to resume the test.
\n
"
while
1
{
puts
-nonewline
"> "
flush stdout
if
{[
gets stdin
]
eq
{
continue
}}
break
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment