Skip to content

Commit 04796d6

Browse files
committed
more realpath
1 parent 15141ea commit 04796d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ public function create_run_dir(): void {
12111211
if ( ! isset( $this->variables['RUN_DIR'] ) ) {
12121212
$temp_run_dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true );
12131213
mkdir( $temp_run_dir );
1214+
$temp_run_dir = realpath( $temp_run_dir ) ?: $temp_run_dir;
12141215
self::$run_dir = $temp_run_dir;
12151216
$this->variables['RUN_DIR'] = self::$run_dir;
12161217
}

0 commit comments

Comments
 (0)