Skip to content

Commit 6b5c279

Browse files
committed
mkdir tweak
1 parent a8ca70d commit 6b5c279

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,10 @@ private static function get_event_file( $scope, &$line ): ?string {
11881188
*/
11891189
public function create_run_dir(): void {
11901190
if ( ! isset( $this->variables['RUN_DIR'] ) ) {
1191-
self::$run_dir = realpath( sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true ) );
1191+
$temp_run_dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true );
1192+
mkdir( $temp_run_dir );
1193+
self::$run_dir = realpath( $temp_run_dir );
11921194
$this->variables['RUN_DIR'] = self::$run_dir;
1193-
mkdir( $this->variables['RUN_DIR'] );
11941195
}
11951196
}
11961197

0 commit comments

Comments
 (0)