Fix nightly test failure (#14251)

The created files have the same filename, creating conflicts. Fix this
by adding a unique suffix.
This commit is contained in:
Niels Dossche 2024-05-16 20:00:46 +02:00 committed by GitHub
parent 32d21af296
commit 02b7d70fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ $batch_file_content = <<<EOT
@echo off
powershell -Command "Write-Output '%1%'"
EOT;
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv.bat';
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv_1.bat';
file_put_contents($batch_file_path, $batch_file_content);
@ -25,5 +25,5 @@ proc_close($proc);
"&notepad.exe
--CLEAN--
<?php
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv.bat');
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv_1.bat');
?>

View file

@ -12,7 +12,7 @@ $batch_file_content = <<<EOT
@echo off
powershell -Command "Write-Output '%1%'"
EOT;
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv.cmd';
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv_2.cmd';
file_put_contents($batch_file_path, $batch_file_content);
@ -25,5 +25,5 @@ proc_close($proc);
"&notepad<>^()!.exe
--CLEAN--
<?php
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv.cmd');
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv_2.cmd');
?>

View file

@ -12,7 +12,7 @@ $batch_file_content = <<<EOT
@echo off
powershell -Command "Write-Output '%1%'"
EOT;
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv.bat';
$batch_file_path = __DIR__ . '/ghsa-54hq-v5wp-fqgv_3.bat';
file_put_contents($batch_file_path, $batch_file_content);
@ -25,5 +25,5 @@ proc_close($proc);
"&notepad.exe
--CLEAN--
<?php
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv.bat');
@unlink(__DIR__ . '/ghsa-54hq-v5wp-fqgv_3.bat');
?>