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
c7c16a32
Commit
c7c16a32
authored
Jul 11, 2011
by
antirez
Browse files
cleanup after test
parent
e4715f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
c7c16a32
...
@@ -140,7 +140,7 @@ proc s {args} {
...
@@ -140,7 +140,7 @@ proc s {args} {
}
}
proc cleanup
{}
{
proc cleanup
{}
{
puts -nonewline
"Cleanup:
warning
may take some time... "
puts -nonewline
"Cleanup: may take some time... "
flush stdout
flush stdout
catch
{
exec rm -rf
{*}
[
glob tests/tmp/redis.conf.*
]}
catch
{
exec rm -rf
{*}
[
glob tests/tmp/redis.conf.*
]}
catch
{
exec rm -rf
{*}
[
glob tests/tmp/server.*
]}
catch
{
exec rm -rf
{*}
[
glob tests/tmp/server.*
]}
...
@@ -281,9 +281,11 @@ proc the_end {} {
...
@@ -281,9 +281,11 @@ proc the_end {} {
foreach failed $::failed_tests
{
foreach failed $::failed_tests
{
puts
"***
$failed
"
puts
"***
$failed
"
}
}
cleanup
exit 1
exit 1
}
else
{
}
else
{
puts
"
\n
[
colorstr bold-white
{
\o
/
}]
[
colorstr bold-green
{
All tests passed without errors!
}]
\n
"
puts
"
\n
[
colorstr bold-white
{
\o
/
}]
[
colorstr bold-green
{
All tests passed without errors!
}]
\n
"
cleanup
exit 0
exit 0
}
}
}
}
...
...
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