diff options
author | unknown <ranger@regul.home.lan> | 2005-12-16 00:23:55 +0200 |
---|---|---|
committer | unknown <ranger@regul.home.lan> | 2005-12-16 00:23:55 +0200 |
commit | 10aaad659be6777b38e1e81195e36a98b02a72cc (patch) | |
tree | 41e4e7b78d6423f361de0d384d9606ab90cd6c77 /mysql-test/lib | |
parent | bf4b5b39102e9502d97330c65a664762366d01e3 (diff) | |
download | mariadb-git-10aaad659be6777b38e1e81195e36a98b02a72cc.tar.gz |
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
mysql-test/lib/mtr_stress.pl:
Limit stress testing with 20 test loops in case when any limit parameter was specified
mysql-test/mysql-test-run.pl:
Limit stress testing with 20 test loops in case when any limit parameter was specified
mysql-test/mysql-test-run.sh:
Limit stress testing with 20 test loops in case when any limit parameter was specified
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_stress.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_stress.pl b/mysql-test/lib/mtr_stress.pl index a57d94e8043..d3ed24db545 100644 --- a/mysql-test/lib/mtr_stress.pl +++ b/mysql-test/lib/mtr_stress.pl @@ -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); |