Skip to content

Commit 44a832f

Browse files
committed
Partial revert
1 parent 509b57d commit 44a832f

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ public function create_run_dir(): void {
11901190
if ( ! isset( $this->variables['RUN_DIR'] ) ) {
11911191
$temp_run_dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true );
11921192
mkdir( $temp_run_dir );
1193-
self::$run_dir = realpath( $temp_run_dir );
1193+
self::$run_dir = $temp_run_dir;
11941194
$this->variables['RUN_DIR'] = self::$run_dir;
11951195
}
11961196
}
@@ -1375,10 +1375,6 @@ public function proc( $command, $assoc_args = [], $path = '' ): Process {
13751375
$command .= Utils\assoc_args_to_str( $assoc_args );
13761376
}
13771377

1378-
if ( Utils\is_windows() ) {
1379-
$command = str_replace( '%', '%%', $command );
1380-
}
1381-
13821378
$env = self::get_process_env_variables();
13831379

13841380
if ( isset( $this->variables['SUITE_CACHE_DIR'] ) ) {
@@ -1417,7 +1413,6 @@ public function proc( $command, $assoc_args = [], $path = '' ): Process {
14171413
*/
14181414
public function background_proc( $cmd ): void {
14191415
if ( Utils\is_windows() ) {
1420-
$cmd = str_replace( '%', '%%', $cmd );
14211416
// On Windows, leaving pipes open can cause hangs.
14221417
// Redirect output to files and close stdin.
14231418
$stdout_file = tempnam( sys_get_temp_dir(), 'behat-stdout-' );

0 commit comments

Comments
 (0)