summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2015-01-19 16:28:58 +0100
committerSergei Golubchik <sergii@pisem.net>2015-01-19 16:28:58 +0100
commit5d0d6cb129f64bfaed2128d2bcc366aeee44e5ad (patch)
treecb183bf27497310d6dd642c5e739af80ebd76b8c /mysql-test/mysql-test-run.pl
parent3f118a74bea0af77963bd2f2370a065c6fc80d84 (diff)
downloadmariadb-git-5d0d6cb129f64bfaed2128d2bcc366aeee44e5ad.tar.gz
MDEV-7294 MTR does not use /dev/shm with a out-of-source build
mtr internally does the following: 1. $default_vardir=.... 2. $opt_vardir=$default_vardir unless $opt_vardir; 3. $opt_vardir=realpath $opt_vardir unless IS_WINDOWS 4. if ($opt_vardir eq $default_vardir) { .... use /dev/shm ... } thus we have to realpath $default_datadir too, otherwise the comparison logic might be broken
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index daf9c6744da..ce07866ff9f 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1494,6 +1494,7 @@ sub command_line_setup {
{
$default_vardir= "$glob_mysql_test_dir/var";
}
+ $default_vardir = realpath $default_vardir unless IS_WINDOWS;
if ( ! $opt_vardir )
{