From 1b1b9413854d4aaf21d8eaf529c23567eb5e0daf Mon Sep 17 00:00:00 2001 From: Teodor Mircea Ionita Date: Thu, 16 Aug 2018 16:39:50 +0300 Subject: [PATCH] MDEV-17022: check if mtr --mem location is writeable --- mysql-test/mysql-test-run.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index ba49d88a85f..ade3f99104e 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1457,7 +1457,7 @@ sub command_line_setup { foreach my $fs (@tmpfs_locations) { - if ( -d $fs ) + if ( -d $fs && -w $fs ) { my $template= "var_${opt_build_thread}_XXXX"; $opt_mem= tempdir( $template, DIR => $fs, CLEANUP => 0);