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

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