Skip to content

Commit e34242c

Browse files
committed
Spit out a few binlogs to get some more information about the particular failure if we can.
1 parent 129aec5 commit e34242c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

test/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void ItCanNewRestoreBuildRunCleanMSBuildProject()
2727

2828
new DotnetCommand(Log, "run")
2929
.WithWorkingDirectory(projectDirectory)
30-
.Execute()
30+
.Execute("/bl:helixfailure.binlog")
3131
.Should().Pass()
3232
.And.HaveStdOutContaining("Hello, World!");
3333

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ public void NativeAot_compiler_runs_when_PublishAot_is_enabled(string targetFram
728728

729729
var publishCommand = new PublishCommand(testAsset);
730730
publishCommand
731-
.Execute()
731+
.Execute("/bl:helixfailure.binlog")
732732
.Should().Pass()
733733
.And.HaveStdOutContaining("warning IL3050")
734734
.And.HaveStdOutContaining("warning IL3056")

test/UnitTests.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
<HelixPostCommands Condition="!$(IsPosixShell)">PowerShell -ExecutionPolicy ByPass "dotnet nuget locals all -l | ForEach-Object { $_.Split(' ')[1]} | Where-Object{$_ -like '*cache'} | Get-ChildItem -Recurse -File -Filter '*.dat' | Measure";$(HelixPostCommands)</HelixPostCommands>
140140
<HelixPostCommands Condition="!$(IsPosixShell)">PowerShell -ExecutionPolicy ByPass "Get-ChildItem -Recurse -File -Filter '*hangdump.dmp' | Copy-Item -Destination $env:HELIX_WORKITEM_UPLOAD_ROOT";$(HelixPostCommands)</HelixPostCommands>
141141
<HelixPostCommands Condition="$(IsPosixShell)">find "$HELIX_WORKITEM_UPLOAD_ROOT/../../.." -name '*hangdump.dmp' -exec cp {} "$HELIX_WORKITEM_UPLOAD_ROOT" \%3B;$(HelixPostCommands)</HelixPostCommands>
142+
<HelixPostCommands Condition="$(IsPosixShell)">find "$HELIX_WORKITEM_UPLOAD_ROOT/../../.." -name '*helixfailure.binlog' -exec cp {} "$HELIX_WORKITEM_UPLOAD_ROOT" \%3B;$(HelixPostCommands)</HelixPostCommands>
142143
<TestDotnetVersion>$(Version)</TestDotnetVersion>
143144
<MSBuildSdkResolverDir>$(RepoRoot)artifacts\bin\Microsoft.DotNet.MSBuildSdkResolver</MSBuildSdkResolverDir>
144145
<HelixStage0Targz>$(RepoRoot)artifacts\tmp\HelixStage0.tar.gz</HelixStage0Targz>

test/dotnet.Tests/CommandTests/Test/GivenDotnetTestBuildsAndRunsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void RunTestProjectWithTestsAndLaunchSettings_ShouldReturnExitCodeSuccess
132132

133133
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
134134
.WithWorkingDirectory(testInstance.Path)
135-
.Execute(TestingPlatformOptions.ConfigurationOption.Name, configuration);
135+
.Execute(TestingPlatformOptions.ConfigurationOption.Name, configuration, "/bl:helixfailure.binlog");
136136

137137
if (!TestContext.IsLocalized())
138138
{

0 commit comments

Comments
 (0)