From 8134e0b3f1ec7a7235479ab8ea5ca286f3d511fd Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 5 May 2020 13:18:53 +0200 Subject: [PATCH] Test: --dont-clean should do first cleanup. --- tests/test_helper.tcl | 7 ++----- 1 file 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 } }