diff options
author | msvensson@pilot.mysql.com <> | 2008-05-02 09:13:43 +0200 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2008-05-02 09:13:43 +0200 |
commit | 4600fc3f34a2ddd999b8c9f2c323dd828056edba (patch) | |
tree | 0334d91b807e3c3d523db852a45f08a42af28b2b /mysql-test | |
parent | 2b104da994eb36f6043771cb6591d369219b00f5 (diff) | |
download | mariadb-git-4600fc3f34a2ddd999b8c9f2c323dd828056edba.tar.gz |
Bug#36463 mysql-test-run.pl should always use the --tmpdi
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7c4677b8274..829941545cd 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1367,7 +1367,15 @@ sub datadir_list_setup () { sub collect_mysqld_features () { my $found_variable_list_start= 0; - my $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function + my $tmpdir; + if ( $opt_tmpdir ) { + # Use the requested tmpdir + mkpath($opt_tmpdir) if (! -d $opt_tmpdir); + $tmpdir= $opt_tmpdir; + } + else { + $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function + } # # Execute "mysqld --no-defaults --help --verbose" to get a @@ -1428,7 +1436,7 @@ sub collect_mysqld_features () { } } } - rmtree($tmpdir); + rmtree($tmpdir) if (!$opt_tmpdir); mtr_error("Could not find version of MySQL") unless $mysql_version_id; mtr_error("Could not find variabes list") unless $found_variable_list_start; |