summaryrefslogtreecommitdiff
path: root/tests/runtest.py
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2019-02-05 12:24:19 -0800
committerGitHub <noreply@github.com>2019-02-05 12:24:19 -0800
commit254eb202bdcdaf2eb2325d3ea20f96c319f0f947 (patch)
tree2bce75b886e9817be1241fd25f6545ccf31299d6 /tests/runtest.py
parent1e1f7d3a88cb91605a3c9716a5354a64ed707a4f (diff)
parentf471342cc072546edf84bb110aa3d2765ad2bb76 (diff)
downloadcoreclr-254eb202bdcdaf2eb2325d3ea20f96c319f0f947.tar.gz
coreclr-254eb202bdcdaf2eb2325d3ea20f96c319f0f947.tar.bz2
coreclr-254eb202bdcdaf2eb2325d3ea20f96c319f0f947.zip
Merge pull request #22425 from BruceForstall/UploadMsbuildLogs
Configure MSBuild debug path and save any logs
Diffstat (limited to 'tests/runtest.py')
-rwxr-xr-xtests/runtest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/runtest.py b/tests/runtest.py
index 7d66a8310e..c3c7fdc0cb 100755
--- a/tests/runtest.py
+++ b/tests/runtest.py
@@ -640,7 +640,14 @@ def call_msbuild(coreclr_repo_location,
logs_dir = os.path.join(coreclr_repo_location, "bin", "Logs")
if not os.path.isdir(logs_dir):
os.makedirs(logs_dir)
-
+
+ msbuild_debug_logs_dir = os.path.join(logs_dir, "MsbuildDebugLogs")
+ if not os.path.isdir(msbuild_debug_logs_dir):
+ os.makedirs(msbuild_debug_logs_dir)
+
+ # Set up the directory for MSBuild debug logs.
+ os.environ["MSBUILDDEBUGPATH"] = msbuild_debug_logs_dir
+
command = [dotnetcli_location,
"msbuild",
os.path.join(coreclr_repo_location, "tests", "runtest.proj"),