maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #01055
[Branch ~maria-captains/maria/5.1] Rev 2737: Fix all innodb tests being disabled when running testsuite as root.
------------------------------------------------------------
revno: 2737
committer: knielsen@xxxxxxxxxxxxxxx
branch nick: work-5.1-release
timestamp: Sat 2009-09-26 04:25:56 +0200
message:
Fix all innodb tests being disabled when running testsuite as root.
modified:
mysql-test/mysql-test-run.pl
--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1
Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'mysql-test/mysql-test-run.pl'
--- mysql-test/mysql-test-run.pl 2009-09-25 14:38:02 +0000
+++ mysql-test/mysql-test-run.pl 2009-09-26 02:25:56 +0000
@@ -1500,6 +1500,10 @@
mtr_add_arg($args, "--datadir=%s", mixed_path($tmpdir));
mtr_add_arg($args, "--language=%s", $path_language);
mtr_add_arg($args, "--skip-grant-tables");
+ my $euid= $>;
+ if (!IS_WINDOWS and $euid == 0) {
+ mtr_add_arg($args, "--user=root");
+ }
mtr_add_arg($args, "--verbose");
mtr_add_arg($args, "--help");