Skip to content

Commit 6e351da

Browse files
Bjorn MunchBjorn Munch
authored andcommitted
Bug #49210 Enable MTR timeout configuration through environment variables
Define env. vars for both timeout settings This patch is for 5.0 (mtr v1) and should replaces for 5.1 up
1 parent e3dd88c commit 6e351da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,15 @@ ()
10771077

10781078
if ( ! $opt_testcase_timeout )
10791079
{
1080-
$opt_testcase_timeout= $default_testcase_timeout;
1080+
$opt_testcase_timeout=
1081+
$ENV{MTR_TESTCASE_TIMEOUT} || $default_testcase_timeout;
10811082
$opt_testcase_timeout*= 10 if $opt_valgrind;
10821083
}
10831084

10841085
if ( ! $opt_suite_timeout )
10851086
{
1086-
$opt_suite_timeout= $default_suite_timeout;
1087+
$opt_suite_timeout=
1088+
$ENV{MTR_SUITE_TIMEOUT} || $default_suite_timeout;
10871089
$opt_suite_timeout*= 6 if $opt_valgrind;
10881090
}
10891091

0 commit comments

Comments
 (0)