Skip to content

Commit 254feac

Browse files
tristanlabellebnbarham
authored andcommitted
Fix silent test failures in the Windows CI
1 parent 8c88f0f commit 254feac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/build-windows-toolchain.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,25 +781,25 @@ python -c "import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'D
781781
:: TODO(compnerd) match the XCTest installation name
782782
python -c "import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'XCTEST_VERSION': 'development' } }), encoding='utf-8'))" > %PlatformRoot%\Info.plist
783783

784-
IF NOT "%SKIP_PACKAGING%"=="1" call :PackageToolchain
784+
IF NOT "%SKIP_PACKAGING%"=="1" call :PackageToolchain || (exit /b)
785785

786786
:: TODO(compnerd) test LLVM
787787

788788
SET SKIP_TEST=0
789789
FOR %%T IN (%SKIP_TESTS%) DO (IF /I %%T==swift SET SKIP_TEST=1)
790-
IF "%SKIP_TEST%"=="0" call :TestSwift
790+
IF "%SKIP_TEST%"=="0" call :TestSwift || (exit /b)
791791

792792
SET SKIP_TEST=0
793793
FOR %%T IN (%SKIP_TESTS%) DO (IF /I %%T==dispatch SET SKIP_TEST=1)
794-
IF "%SKIP_TEST%"=="0" call :TestDispatch
794+
IF "%SKIP_TEST%"=="0" call :TestDispatch || (exit /b)
795795

796796
SET SKIP_TEST=0
797797
FOR %%T IN (%SKIP_TESTS%) DO (IF /I %%T==foundation SET SKIP_TEST=1)
798-
IF "%SKIP_TEST%"=="0" call :TestFoundation
798+
IF "%SKIP_TEST%"=="0" call :TestFoundation || (exit /b)
799799

800800
SET SKIP_TEST=0
801801
FOR %%T IN (%SKIP_TESTS%) DO (IF /I %%T==xctest SET SKIP_TEST=1)
802-
IF "%SKIP_TEST%"=="0" call :TestXCTest
802+
IF "%SKIP_TEST%"=="0" call :TestXCTest || (exit /b)
803803

804804
:: Clean up the module cache
805805
rd /s /q %LocalAppData%\clang\ModuleCache

0 commit comments

Comments
 (0)