mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
fix mysql-test-run.pl to support --timezone option,
which got broken during refactoring.
This commit is contained in:
parent
1b231a177f
commit
0372ca79ff
1 changed files with 8 additions and 1 deletions
|
@ -3614,6 +3614,14 @@ sub run_testcase_start_servers($) {
|
|||
return;
|
||||
}
|
||||
|
||||
#
|
||||
# Set the timezone, in the case it was specified in the test
|
||||
# We need to do this before the server is started, as mysqld
|
||||
# uses this information at startup
|
||||
#
|
||||
|
||||
$ENV{'TZ'}= $tinfo->{'timezone'};
|
||||
|
||||
if ( $tinfo->{'component_id'} eq 'mysqld' )
|
||||
{
|
||||
if ( ! $opt_skip_ndbcluster and
|
||||
|
@ -3978,7 +3986,6 @@ sub run_mysqltest ($) {
|
|||
# -------------------------------------------------------
|
||||
# Init variables that change for each testcase
|
||||
# -------------------------------------------------------
|
||||
$ENV{'TZ'}= $tinfo->{'timezone'};
|
||||
|
||||
my $res = mtr_run_test($exe,$args,"","",$path_timefile,"");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue