From 0372ca79ff9d01d1b6f7c43829988c503a2f93e1 Mon Sep 17 00:00:00 2001 From: "petr/cps@outpost.site" <> Date: Mon, 6 Nov 2006 00:14:04 +0300 Subject: [PATCH] fix mysql-test-run.pl to support --timezone option, which got broken during refactoring. --- mysql-test/mysql-test-run.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index c2dc0961a4a..39be24ea6ae 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -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,"");