1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed stress parts in shell and perl versions of mysql-test-run script to limit stress testing

with 20 test loops in case when any limit parameter was specified
This commit is contained in:
ranger@regul.home.lan
2005-12-16 00:23:55 +02:00
parent e6b08a5ea9
commit 5e34b5da01
3 changed files with 19 additions and 3 deletions

View File

@@ -145,6 +145,14 @@ sub run_stress_test ()
mtr_add_arg($args, "--stress-init-file=%", $::opt_stress_init_file);
}
if ( !$::opt_stress_loop_count && !$::opt_stress_test_count &&
!$::opt_stress_test_duration )
{
#Limit stress testing with 20 loops in case when any limit parameter
#was specified
$::opt_stress_test_count=20;
}
if ( $::opt_stress_loop_count )
{
mtr_add_arg($args, "--loop-count=%s", $::opt_stress_loop_count);