diff options
author | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-02-11 14:35:54 +0100 |
---|---|---|
committer | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-02-11 14:35:54 +0100 |
commit | 67baad9b4c0429cbdbb54e2ffdb473b2ad30239b (patch) | |
tree | 217ab7e02e14f0c6a55f2fce67507cc902d7d843 /mysql-test/mysql-test-run.pl | |
parent | 162f69babcd2afcd1b6074893133a4f3f7f52e97 (diff) | |
parent | e6c93a4ef1d0f02f5074ba408a2f50102ad95c57 (diff) | |
download | mariadb-git-67baad9b4c0429cbdbb54e2ffdb473b2ad30239b.tar.gz |
upmerge 31602,47389,50618
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 94a842bdc00..5c18834b0be 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -963,6 +963,11 @@ sub command_line_setup { # Find the absolute path to the test directory $glob_mysql_test_dir= cwd(); + if ($glob_mysql_test_dir =~ / /) + { + die("Working directory \"$glob_mysql_test_dir\" contains space\n". + "Bailing out, cannot function properly with space in path"); + } if (IS_CYGWIN) { # Use mixed path format i.e c:/path/to/ @@ -1499,6 +1504,12 @@ sub collect_mysqld_features { mtr_add_arg($args, "--verbose"); mtr_add_arg($args, "--help"); + # Need --user=root if running as *nix root user + if (!IS_WINDOWS and $> == 0) + { + mtr_add_arg($args, "--user=root"); + } + my $exe_mysqld= find_mysqld($basedir); my $cmd= join(" ", $exe_mysqld, @$args); my $list= `$cmd`; |