diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 488ec644b74665b19db7d3b66667025631423ee9..845aee28c45b5f4cfaddcdffaa301c519e80dd39 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -3920,7 +3920,7 @@ sub mysqld_arguments ($$$$) {
   mtr_add_arg($args, "%s--datadir=%s", $prefix,
 	      $mysqld->{'path_myddir'});
 
-  mtr_add_arg($args, "--disable-sync-frm");  # Faster test
+  mtr_add_arg($args, "%s--disable-sync-frm", $prefix);  # Faster test
 
   if ( $mysql_version_id >= 50106 )
   {