Skip to content

Commit f8d7c8a

Browse files
committed
Sync script changes from the runtime repo #18943
1 parent 00e8e95 commit f8d7c8a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Shared/runtime/CopyToAspNetCore.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ IF [%remote_repo%] == [] (
1010

1111
echo ASPNETCORE_REPO: %remote_repo%
1212

13-
robocopy . %remote_repo%\src\Shared\runtime /MIR
14-
robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR
13+
REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code
14+
(robocopy . %remote_repo%\src\Shared\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0
15+
(robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0

src/Shared/runtime/CopyToRuntime.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ IF [%remote_repo%] == [] (
1010

1111
echo RUNTIME_REPO: %remote_repo%
1212

13-
robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR
14-
robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR
13+
REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code
14+
(robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0
15+
(robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0

0 commit comments

Comments
 (0)