summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-05 13:18:53 +0200
committerantirez <antirez@gmail.com>2020-05-05 13:18:53 +0200
commite49d97298a91827434312b41693a83c1a2969fa0 (patch)
tree522f8a0b39483072234deae38f21dae5cd20240e
parent140c20fb5ecf051896459ce5ee2891f27a49e945 (diff)
downloadredis-e49d97298a91827434312b41693a83c1a2969fa0.tar.gz
Test: --dont-clean should do first cleanup.
-rw-r--r--tests/test_helper.tcl7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl
index 3eee1aeb7..de0a64728 100644
--- a/tests/test_helper.tcl
+++ b/tests/test_helper.tcl
@@ -216,9 +216,6 @@ proc run_solo {name code} {
}
proc cleanup {} {
- if {$::dont_clean} {
- return
- }
if {!$::quiet} {puts -nonewline "Cleanup: may take some time... "}
flush stdout
catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
@@ -456,11 +453,11 @@ proc the_end {} {
foreach failed $::failed_tests {
puts "*** $failed"
}
- cleanup
+ if {!$::dont_clean} cleanup
exit 1
} else {
puts "\n[colorstr bold-white {\o/}] [colorstr bold-green {All tests passed without errors!}]\n"
- cleanup
+ if {!$::dont_clean} cleanup
exit 0
}
}