Skip to content

Commit 7a2a75b

Browse files
committed
inject T(E)MP var into sub-processes
1 parent 02300f9 commit 7a2a75b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ private static function get_process_env_variables(): array {
462462
'TEST_RUN_DIR' => self::$behat_run_dir,
463463
];
464464

465+
if ( Utils\is_windows() ) {
466+
$env['TMP'] = getenv( 'TMP' ) ?: sys_get_temp_dir();
467+
$env['TEMP'] = getenv( 'TEMP' ) ?: sys_get_temp_dir();
468+
}
469+
465470
$env = array_merge( $_ENV, $env );
466471

467472
if ( self::running_with_code_coverage() ) {

0 commit comments

Comments
 (0)