We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025fd47 commit 040008eCopy full SHA for 040008e
1 file changed
features/config-create.feature
@@ -168,10 +168,12 @@ Feature: Create a wp-config file
168
"""
169
<?php
170
// The WP_CLI_TEST_DBSOCKET variable can be set in the environment to
171
- // override the default locations.
172
- $environment_socket = getenv( 'WP_CLI_TEST_DBSOCKET' );
+ // override the default locations and will take precedence.
+ if ( ! empty( getenv( 'WP_CLI_TEST_DBSOCKET' ) ) ) {
173
+ echo getenv( 'WP_CLI_TEST_DBSOCKET' );
174
+ exit(0);
175
+ }
176
$locations = [
- $environment_socket,
177
'/var/run/mysqld/mysqld.sock',
178
'/tmp/mysql.sock',
179
];
0 commit comments