Skip to content

Commit

Permalink
[xharness] Don't try to parse a build log that doesn't exist. (#9253)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored and mandel-macaque committed Oct 5, 2020
1 parent 87666e0 commit 74ecb16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/xharness/TestTasks/RunTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using Microsoft.DotNet.XHarness.iOS.Shared;
using Microsoft.DotNet.XHarness.iOS.Shared.Execution;
Expand Down Expand Up @@ -67,7 +68,7 @@ public async Task<bool> BuildAsync ()
testTask.FailureMessage = BuildTask.FailureMessage;
if (BuildTask.KnownFailure.HasValue)
testTask.KnownFailure = BuildTask.KnownFailure;
if (generateXmlFailures && BuildTask.BuildLog != null) {
if (generateXmlFailures && BuildTask.BuildLog != null && File.Exists (BuildTask.BuildLog.FullPath)) {
var logReader = BuildTask.BuildLog.GetReader ();
ResultParser.GenerateFailure (
logs: testTask.Logs,
Expand Down

0 comments on commit 74ecb16

Please sign in to comment.