aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runtests.pl10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 52045ab14..e7ea11c46 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -3202,6 +3202,9 @@ sub singletest {
my $cmd;
my $disablevalgrind;
+ # fist, remove all lingering log files
+ cleardir($LOGDIR);
+
# copy test number to a global scope var, this allows
# testnum checking when starting test harness servers.
$testnumcheck = $testnum;
@@ -3862,9 +3865,6 @@ sub singletest {
# Skip all the verification on torture tests
if ($torture) {
- if(!$cmdres && !$keepoutfiles) {
- cleardir($LOGDIR);
- }
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
return $cmdres;
@@ -4295,10 +4295,6 @@ sub singletest {
logmsg "PASS: $testnum - $testname\n";
}
- # the test succeeded, remove all log files
- if(!$keepoutfiles) {
- cleardir($LOGDIR);
- }
return 0;
}