Skip to content

Commit

Permalink
kill build processes before perf run
Browse files Browse the repository at this point in the history
  • Loading branch information
TyOverby committed Nov 9, 2016
1 parent b13b71e commit 1f332c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cibuild.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ if defined TestPerfRun (
)
)

call :TerminateBuildProcesses
.\Binaries\%BuildConfiguration%\Exes\Perf.Runner\Roslyn.Test.Performance.Runner.exe --no-trace-upload !EXTRA_PERF_RUNNER_ARGS! || goto :BuildFailed
exit /b 0
)
Expand Down Expand Up @@ -137,6 +138,7 @@ exit /b 0
:BuildFailed
echo Build failed with ERRORLEVEL %ERRORLEVEL%
call :TerminateBuildProcesses
:ActuallyFail
exit /b 1

:TerminateBuildProcesses
Expand All @@ -146,4 +148,13 @@ exit /b 1
@REM left some floating around).

taskkill /F /IM vbcscompiler.exe 2> nul
if ERRORLEVEL 1 GOTO ActuallyFail

taskkill /F /IM msbuild.exe 2> nul
if ERRORLEVEL 1 GOTO ActuallyFail

taskkill /F /IM csc.exe 2> nul
if ERRORLEVEL 1 GOTO ActuallyFail

taskkill /F /IM vbc.exe 2> nul
if ERRORLEVEL 1 GOTO ActuallyFail

0 comments on commit 1f332c0

Please sign in to comment.