Commit 445596a1 authored by Bjorn Munch's avatar Bjorn Munch

Bug #47389 Innodb tests are skipped when running as unix root user

Add --user=root to collect_mysqld_features() if running as root
Please disregard previous commit; this is much simpler.
parent e814ed95
......@@ -1482,6 +1482,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`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment