1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Bug #55178 Set timeout on test-to-test-basis

Allow --testcase-timeout=<mins> to be set in .opt file for test
This commit is contained in:
Bjorn Munch
2010-08-30 11:25:10 +02:00
parent 16b7af9ae0
commit fd9b6b8e07
2 changed files with 21 additions and 4 deletions

View File

@ -684,6 +684,13 @@ sub process_opts_file {
next;
}
$value= mtr_match_prefix($opt, "--testcase-timeout=");
if ( defined $value ) {
# Overrides test case timeout for this test
$tinfo->{'case-timeout'}= $value;
next;
}
# Ok, this was a real option, add it
push(@{$tinfo->{$opt_name}}, $opt);
}