diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-04 14:46:18 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-04 14:46:18 +0200 |
commit | 2cf17b09edae9ca062cf8c8473a4f01d9e7cffe6 (patch) | |
tree | f0952f66afe814924f6d9a93f39aca24af83daf6 /mysql-test | |
parent | ab589043670145c95ff372021bab19464b6036e2 (diff) | |
download | mariadb-git-2cf17b09edae9ca062cf8c8473a4f01d9e7cffe6.tar.gz |
Resolve opt_vardir in MTR with realpath. Server resolves some directory names, thus
mtr should do it as well, to avoid differences in test output.
This fixes sys_vars.secure_file_priv on FreeBSD9.0 buildbot.
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index fdf34c1c9ec..b913c1810e4 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -78,7 +78,8 @@ BEGIN { use lib "lib"; -use Cwd; +use Cwd ; +use Cwd 'realpath'; use Getopt::Long; use My::File::Path; # Patched version of File::Path use File::Basename; @@ -1040,8 +1041,14 @@ sub ignore_option { # Setup any paths that are $opt_vardir related sub set_vardir { my ($vardir)= @_; - - $opt_vardir= $vardir; + if(IS_WINDOWS) + { + $opt_vardir= $vardir; + } + else + { + $opt_vardir= realpath($vardir); + } $path_vardir_trace= $opt_vardir; # Chop off any "c:", DBUG likes a unix path ex: c:/src/... => /src/... |