summaryrefslogtreecommitdiff
path: root/tests/runtest.py
diff options
context:
space:
mode:
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"),