summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl33
1 files changed, 8 insertions, 25 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index f3602f2d197..fdc0833cc97 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1013,15 +1013,7 @@ sub ignore_option {
# Setup any paths that are $opt_vardir related
sub set_vardir {
- my ($vardir)= @_;
- if(IS_WINDOWS)
- {
- $opt_vardir= $vardir;
- }
- else
- {
- $opt_vardir= realpath($vardir);
- }
+ ($opt_vardir)= @_;
$path_vardir_trace= $opt_vardir;
# Chop off any "c:", DBUG likes a unix path ex: c:/src/... => /src/...
@@ -1452,7 +1444,7 @@ sub command_line_setup {
# Search through list of locations that are known
# to be "fast disks" to find a suitable location
# Use --mem=<dir> as first location to look.
- my @tmpfs_locations= ($opt_mem, "/dev/shm", "/tmp");
+ my @tmpfs_locations= ($opt_mem,"/run/shm", "/dev/shm", "/tmp");
foreach my $fs (@tmpfs_locations)
{
@@ -1468,20 +1460,11 @@ sub command_line_setup {
# --------------------------------------------------------------------------
# Set the "var/" directory, the base for everything else
# --------------------------------------------------------------------------
- if(defined $ENV{MTR_BINDIR})
- {
- $default_vardir= "$ENV{MTR_BINDIR}/mysql-test/var";
- }
- else
- {
- $default_vardir= "$glob_mysql_test_dir/var";
- }
- unless (IS_WINDOWS) {
- my $realpath = realpath($default_vardir);
- die "realpath('$default_vardir') failed: $!\n"
- unless defined($realpath) && $realpath ne '';
- $default_vardir = $realpath;
- }
+ my $vardir_location= (defined $ENV{MTR_BINDIR}
+ ? "$ENV{MTR_BINDIR}/mysql-test"
+ : $glob_mysql_test_dir);
+ $vardir_location= realpath $vardir_location unless IS_WINDOWS;
+ $default_vardir= "$vardir_location/var";
if ( ! $opt_vardir )
{
@@ -6004,7 +5987,7 @@ Options to control directories to use
mem Run testsuite in "memory" using tmpfs or ramdisk
Attempts to find a suitable location
using a builtin list of standard locations
- for tmpfs (/dev/shm)
+ for tmpfs (/run/shm, /dev/shm, /tmp)
The option can also be set using environment
variable MTR_MEM=[DIR]
clean-vardir Clean vardir if tests were successful and if