Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
build,win: propagate error codes in vcbuild
Don't exit vcbuild with error code 0 when cctest fails.
  • Loading branch information
joaocgreis committed Nov 30, 2019
commit c155914aa77c8149afbd8c1a88b96ff9d0cbf5ee
5 changes: 4 additions & 1 deletion vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ set v8_build_options=
set http2_debug=
set nghttp2_debug=
set link_module=
set exit_code=0

:next-arg
if "%1"=="" goto args-done
Expand Down Expand Up @@ -486,10 +487,12 @@ if defined skip_cctest goto run-test-py
if not exist %config%\cctest.exe goto run-test-py
echo running 'cctest %cctest_args%'
"%config%\cctest" %cctest_args%
if %errorlevel% neq 0 set exit_code=%errorlevel%
:run-test-py
REM when building a static library there's no binary to run tests
if defined enable_static goto test-v8
call :run-python tools\test.py %test_args%
if %errorlevel% neq 0 set exit_code=%errorlevel%

:test-v8
if not defined custom_v8_test goto lint-cpp
Expand Down Expand Up @@ -587,7 +590,7 @@ echo %cmd1%
exit /b %ERRORLEVEL%

:exit
goto :EOF
exit /b %exit_code%


rem ***************
Expand Down