Skip to content

Commit

Permalink
Fix regex for exit code detection (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katya Sokolova authored Nov 25, 2020
1 parent 91017f1 commit 6122ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public int DetectExitCode(AppBundleInformation appBundleInfo, IReadableLog syste
string line = reader.ReadLine();

// This will be improved when we find out it differes for new iOS versions
if (line.Contains("UIKitApplication:net.dot." + appBundleInfo.AppName) && line.Contains("Service exited with abnormal code"))
if (line.Contains("UIKitApplication:") && line.Contains(appBundleInfo.AppName) && line.Contains("Service exited with abnormal code"))
{
var regex = new Regex(" (\\-?[0-9]+)$");
var match = regex.Match(line);
Expand Down

0 comments on commit 6122ff8

Please sign in to comment.