Commit 7345c0de authored by Sergei Petrunia's avatar Sergei Petrunia

Fix tests: some build hosts have ramdisk in /run/shm instead of /dev/shm

parent 622ecfc7
......@@ -8,7 +8,8 @@ use Cwd 'abs_path';
open(FILE, ">", "$ENV{MYSQL_TMP_DIR}/data_in_shm.inc") or die;
my $real_path= abs_path($ENV{'MYSQLTEST_VARDIR'});
my $in_shm= index($real_path, "/dev/shm") != -1;
my $in_shm= (index($real_path, "/dev/shm") != -1) ||
(index($real_path, "/run/shm") != -1);
print FILE "let \$DATA_IN_SHM= $in_shm;\n";
close FILE;
EOF
......@@ -18,5 +19,5 @@ EOF
if ($DATA_IN_SHM)
{
--skip DATADIR is in /dev/shm, possibly due to --mem
--skip DATADIR is in /{dev|run}/shm, possibly due to --mem
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment