Skip to content

Commit 6a06d37

Browse files
committed
% change test_task.bat2
1 parent 7f322c0 commit 6a06d37

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/scripts/windows/test_task.bat

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ if exist "%DEPS_DIR%\bin" (
5151
echo.
5252
echo Copying DLL files...
5353
copy /y "%DEPS_DIR%\bin\*.dll" "%PHP_BUILD_DIR%\"
54-
if %errorlevel% neq 0 (
55-
echo ERROR: Failed to copy DLL files (exit code: %errorlevel%)
54+
set COPY_EXIT_CODE=%errorlevel%
55+
echo Copy command completed with exit code: %COPY_EXIT_CODE%
56+
57+
rem Exit code 1 from copy can mean "some files already exist" which is OK
58+
rem Only exit on codes 4+ which indicate real errors
59+
if %COPY_EXIT_CODE% gtr 3 (
60+
echo ERROR: Failed to copy DLL files (exit code: %COPY_EXIT_CODE%)
5661
exit /b 1
5762
) else (
58-
echo SUCCESS: DLL files copied
63+
echo SUCCESS: DLL files copied (or already present)
5964
)
6065

6166
echo.

0 commit comments

Comments
 (0)