We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfcc8b2 + a9ea7e3 commit 1a64913Copy full SHA for 1a64913
features/bootstrap/FeatureContext.php
@@ -408,6 +408,12 @@ public function afterScenario( $event ) {
408
self::$suite_cache_dir = null;
409
}
410
411
+ // Remove global config file if any.
412
+ $env = self::get_process_env_variables();
413
+ if ( isset( $env['HOME'] ) && file_exists( "{$env['HOME']}/.wp-cli/config.yml" ) ) {
414
+ unlink( "{$env['HOME']}/.wp-cli/config.yml" );
415
+ }
416
+
417
// Remove any background processes.
418
foreach ( $this->running_procs as $proc ) {
419
$status = proc_get_status( $proc );
0 commit comments