diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2011-09-14 15:26:53 +0200 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2011-09-14 15:26:53 +0200 |
commit | 6e2adc9fb4770f1151f8ce7b7e0353f9c0358fc9 (patch) | |
tree | 096287f1319001d8f848ddc6a9cb64fbff9e9a5f /mysql-test/mysql-test-run.pl | |
parent | 52960624d350359c67a333fb09c3a93465116668 (diff) | |
download | mariadb-git-6e2adc9fb4770f1151f8ce7b7e0353f9c0358fc9.tar.gz |
Bug #12912120 MTR SHOULD EXPORT MYSQLD'S PATH TO TEST CASES
Export $MYSQLD as full path to executable
$MYSQLD_CMD is executable with minimum required args
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7661714eb03..148339c3890 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2130,6 +2130,12 @@ sub environment_setup { $ENV{'MYSQL_FIX_SYSTEM_TABLES'}= mysql_fix_arguments(); $ENV{'EXE_MYSQL'}= $exe_mysql; + my $exe_mysqld= find_mysqld($basedir); + $ENV{'MYSQLD'}= $exe_mysqld; + my $extra_opts= join (" ", @opt_extra_mysqld_opt); + $ENV{'MYSQLD_CMD'}= "$exe_mysqld --defaults-group-suffix=.1 ". + "--defaults-file=$path_config_file $extra_opts"; + # ---------------------------------------------------- # bug25714 executable may _not_ exist in # some versions, test using it should be skipped |