Commit c7c16a32 authored by antirez's avatar antirez
Browse files

cleanup after test

parent e4715f00
...@@ -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
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment