Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtests: keep logfiles around by default #4035

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 3 additions & 7 deletions tests/runtests.pl
Expand Up @@ -3125,6 +3125,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;
Expand Down Expand Up @@ -4083,9 +4086,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;
Expand Down Expand Up @@ -4516,10 +4516,6 @@ sub singletest {
logmsg "PASS: $testnum - $testname\n";
}

# the test succeeded, remove all log files
if(!$keepoutfiles) {
cleardir($LOGDIR);
}

return 0;
}
Expand Down