Skip to content

Commit a2befaf

Browse files
committed
Use mysql.exe
1 parent 98b1583 commit a2befaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,11 @@ public static function prepare( BeforeSuiteScope $scope ): void {
668668
self::$behat_run_dir = getcwd();
669669
self::$mysql_binary = Utils\get_mysql_binary_path();
670670

671+
// TODO: Improve Windows support upstream in Utils\get_mysql_binary_path().
672+
if ( self::is_windows() && ! self::$mysql_binary ) {
673+
self::$mysql_binary = 'mysql.exe';
674+
}
675+
671676
$result = Process::create( 'wp cli info', null, self::get_process_env_variables() )->run_check();
672677
echo "{$result->stdout}\n";
673678

0 commit comments

Comments
 (0)