From 13461e33d590fefa3bb3cb911a225276e1cb37cf Mon Sep 17 00:00:00 2001 From: "msvensson@pilot.mysql.com" <> Date: Thu, 24 Apr 2008 20:25:00 +0200 Subject: [PATCH] If more than one parallel run, use a subdir of the selected tmpdir --- mysql-test/mysql-test-run.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index cb9b7970c9f..16335153140 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -892,6 +892,11 @@ sub command_line_setup { $opt_tmpdir= "$opt_vardir/tmp" unless $opt_tmpdir; $opt_tmpdir =~ s,/+$,,; # Remove ending slash if any + # If more than one parallel run, use a subdir of the selected tmpdir + if ($thread_num && $opt_parallel > 1) { + $opt_tmpdir.= "/".$thread_num; + } + # -------------------------------------------------------------------------- # fast option # --------------------------------------------------------------------------