Capture STDERR in SDK test logs

This commit is contained in:
Daniel Plaisted 2019-05-20 12:04:08 -07:00
parent 4740b1c146
commit 65a90b6a39

View file

@ -212,7 +212,7 @@
<TestArgs>$(TestArgs) -testConfigFile "$(MSBuildThisFileDirectory)TestConfig.xml"</TestArgs>
<TestArgs>$(TestArgs) -xml "$(ResultsXmlPath)"</TestArgs>
<TestArgs>$(TestArgs) -html "$(ResultsHtmlPath)" $(TestRunnerAdditionalArguments)</TestArgs>
<TestArgs>$(TestArgs) &gt; $(ResultsStdOutPath)</TestArgs>
<TestArgs>$(TestArgs) &gt; $(ResultsStdOutPath) 2&gt;&amp;1</TestArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
@ -227,8 +227,7 @@
</PropertyGroup>
<Exec Command="$(ToolRunPrefix)dotnet tool run $(ToolCommandName) -- $(TestArgs)"
WorkingDirectory="$(TestLocalToolFolder)"
IgnoreStandardErrorWarningFormat="true" />
WorkingDirectory="$(TestLocalToolFolder)" />
</Target>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />