diff --git a/test.cmd b/test.cmd index c879b9d2c3..8045e25dc3 100644 --- a/test.cmd +++ b/test.cmd @@ -1,3 +1,4 @@ @echo off +if not defined MSBUILDTERMINALLOGGER set MSBUILDTERMINALLOGGER=off powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\Build.ps1""" -test %*" exit /b %ErrorLevel% diff --git a/test.sh b/test.sh index 7f61c8be87..1cb02b0090 100755 --- a/test.sh +++ b/test.sh @@ -16,4 +16,8 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" if [[ -z "${DOTNET_ROOT:-}" && -d "$scriptroot/.dotnet" ]]; then export DOTNET_ROOT="$scriptroot/.dotnet" fi +# Disable MSBuild terminal logger so test output isn't buffered. TestCaptureOutput=false +# means there are no log files to reference, so the terminal logger would show +# misleading "See log file" messages with paths to files that don't exist. +export MSBUILDTERMINALLOGGER=${MSBUILDTERMINALLOGGER:-off} "$scriptroot/eng/common/build.sh" --test "$@"