summaryrefslogtreecommitdiff
path: root/tests/runtest.cmd
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
committerBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
commitf471342cc072546edf84bb110aa3d2765ad2bb76 (patch)
tree8b535f2cbe5c81b43ec9572d96abeca2938df7df /tests/runtest.cmd
parent7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff)
downloadcoreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.gz
coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.bz2
coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.zip
Configure MSBuild debug path and save any logs
We have had many problems in the CI with MSBuild failing, and not capturing the failure logs. See https://github.com/dotnet/coreclr/issues/20236. So, for all msbuild invocations, set MSBUILDDEBUGPATH to a new, distinguished, subdirectory of the bin\Logs directory, named "MsbuildDebugLogs". Change the CI to upload any log files found there.
Diffstat (limited to 'tests/runtest.cmd')
-rw-r--r--tests/runtest.cmd7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd
index 37c534192a..e691e7fdb7 100644
--- a/tests/runtest.cmd
+++ b/tests/runtest.cmd
@@ -34,6 +34,7 @@ if %__ProjectDir:~-1%==\ set "__ProjectDir=%__ProjectDir:~0,-1%"
set "__ProjectFilesDir=%__ProjectDir%"
set "__RootBinDir=%__ProjectDir%\..\bin"
set "__LogsDir=%__RootBinDir%\Logs"
+set "__MsbuildDebugLogsDir=%__LogsDir%\MsbuildDebugLogs"
set __Sequential=
set __msbuildExtraArgs=
@@ -283,7 +284,11 @@ if defined DoLink (
set __msbuildCommonArgs=%__msbuildCommonArgs% /p:RunTestsViaIllink=true
)
-if not exist %__LogsDir% md %__LogsDir%
+if not exist "%__LogsDir%" md "%__LogsDir%"
+if not exist "%__MsbuildDebugLogsDir%" md "%__MsbuildDebugLogsDir%"
+
+REM Set up the directory for MSBuild debug logs.
+set MSBUILDDEBUGPATH=%__MsbuildDebugLogsDir%
REM These log files are created automatically by the test run process. Q: what do they depend on being set?
set __TestRunHtmlLog=%__LogsDir%\TestRun_%__BuildOS%__%__BuildArch%__%__BuildType%.html