Skip to content

Commit c921f04

Browse files
authored
Merge pull request #197 from wp-cli/add/db-socket-env
2 parents fac747f + 29e4546 commit c921f04

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Context/FeatureContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,10 @@ public function __construct() {
626626
$this->variables['MYSQL_HOST'] = getenv( 'MYSQL_HOST' );
627627
}
628628

629+
if ( getenv( 'WP_CLI_TEST_DBSOCKET' ) ) {
630+
$this->variables['DB_SOCKET'] = getenv( 'WP_CLI_TEST_DBSOCKET' );
631+
}
632+
629633
self::$db_settings['dbname'] = $this->variables['DB_NAME'];
630634
self::$db_settings['dbuser'] = $this->variables['DB_USER'];
631635
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];

utils/mapped_socket_folder/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)