Commit 77b4ce5b authored by unknown's avatar unknown

Only run the "saved core limit" if the datadir was saved

parent 3b4ba47d
......@@ -404,8 +404,6 @@ sub run_test_server {
else {
mtr_report(" - saving '$worker_savedir/' to '$savedir/'");
rename($worker_savedir, $savedir);
}
$num_saved_datadir++;
if ($opt_max_save_core > 0) {
# Limit number of core files saved
......@@ -430,6 +428,8 @@ sub run_test_server {
},
$savedir);
}
}
$num_saved_datadir++;
if ( !$opt_force ) {
# Test has failed, force is off
......
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