From 6122ff8b03bcab3597dbd0c2259c846de000f193 Mon Sep 17 00:00:00 2001 From: Katya Sokolova Date: Wed, 25 Nov 2020 17:39:26 +0100 Subject: [PATCH] Fix regex for exit code detection (#378) --- src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs b/src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs index 45fe303ed75ac..cdfda3fc7ab2a 100644 --- a/src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs +++ b/src/Microsoft.DotNet.XHarness.iOS/ExitCodeDetector.cs @@ -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);