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
23a12bb8
Commit
23a12bb8
authored
Mar 04, 2014
by
antirez
Browse files
Sentiel test: add test start time in output.
parent
d2e16801
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/sentinel.tcl
View file @
23a12bb8
...
@@ -137,7 +137,8 @@ proc pause_on_error {} {
...
@@ -137,7 +137,8 @@ proc pause_on_error {} {
# We redefine 'test' as for Sentinel we don't use the server-client
# We redefine 'test' as for Sentinel we don't use the server-client
# architecture for the test, everything is sequential.
# architecture for the test, everything is sequential.
proc test
{
descr code
}
{
proc test
{
descr code
}
{
puts -nonewline
">
$descr:
"
set ts
[
clock format
[
clock seconds
]
-format %H:%M:%S
]
puts -nonewline
"
$ts
>
$descr:
"
flush stdout
flush stdout
if
{[
catch
{
set retval
[
uplevel 1 $code
]}
error
]}
{
if
{[
catch
{
set retval
[
uplevel 1 $code
]}
error
]}
{
...
...
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