Skip to content

Commit 34e6499

Browse files
author
John Luo
committed
Capture logs on helix
1 parent a9ded02 commit 34e6499

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Grpc/test/InteropTests/Helpers/WebsiteProcess.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private void Process_OutputDataReceived(object sender, DataReceivedEventArgs e)
7878

7979
public void Dispose()
8080
{
81-
File.WriteAllText(_serverLogPath, _consoleOut.ToString());
81+
File.WriteAllText(_serverLogPath ?? Path.Combine(Directory.GetCurrentDirectory(), "InteropServer.log"), _consoleOut.ToString());
8282
_processEx.Dispose();
8383
}
8484
}

src/Grpc/test/InteropTests/InteropTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Compile Include="..\..\..\Shared\Process\ProcessEx.cs" Link="Helpers\ProcessEx.cs" />
1010
<Compile Include="..\..\..\Shared\Process\ProcessExtensions.cs" Link="Helpers\ProcessExtensions.cs" />
1111

12-
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
12+
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(IsHelixJob)' != 'true'">
1313
<_Parameter1>ServerLogPath</_Parameter1>
1414
<_Parameter2>$(ArtifactsLogDir)InteropServer.log</_Parameter2>
1515
</AssemblyAttribute>

0 commit comments

Comments
 (0)