Skip to content

Commit a8ca70d

Browse files
committed
realpath run_dir
1 parent 7a2a75b commit a8ca70d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Context/FeatureContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ 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 = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true );
1191+
self::$run_dir = realpath( sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid( 'wp-cli-test-run-' . self::$temp_dir_infix . '-', true ) );
11921192
$this->variables['RUN_DIR'] = self::$run_dir;
11931193
mkdir( $this->variables['RUN_DIR'] );
11941194
}

0 commit comments

Comments
 (0)