From 8b511b50d8ad05c564be695c4881d7ab018fe362 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 13 Feb 2023 16:39:50 -0800 Subject: [PATCH] Update build-windows.bat Repair the exit on test failure. We should not continue on test failures. --- utils/build-windows.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/build-windows.bat b/utils/build-windows.bat index c899efc58d850..c0279fb0d2b75 100644 --- a/utils/build-windows.bat +++ b/utils/build-windows.bat @@ -89,8 +89,10 @@ call :build_libdispatch %exitOnError% path %install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH% if %RunTest%==1 ( - call :test_swift %exitOnError% - call :test_libdispatch %exitOnError% + call :test_swift + IF %ERRORLEVEL% NEQ 0 (exit /b) + call :test_libdispatch + IF %ERRORLEVEL% NEQ 0 (exit /b) ) goto :end