Dashboard has trouble parsing iOS test output
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Mar 2015 00:40:15 +0000 (00:40 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Mar 2015 00:40:15 +0000 (00:40 +0000)
<http://webkit.org/b/142364>

Reviewed by Alex Christensen.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
(BuildbotTestResults.prototype._parseResults.resultSummarizer):
Add fallback path to build a regex using 'matchString' so that
it matches anywhere in the line.  In practice, 'matchString' is
a prefix for the label following the number.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js
Tools/ChangeLog

index b99eaad..ff011f4 100644 (file)
@@ -73,6 +73,10 @@ BuildbotTestResults.prototype = {
         function resultSummarizer(matchString, sum, outputLine)
         {
             var match = /^(\d+)\s/.exec(outputLine);
+            if (!match) {
+                var regex = new RegExp("(\\d+)\\s" + matchString);
+                match = regex.exec(outputLine);
+            }
             if (!match)
                 return sum;
             if (!outputLine.contains(matchString))
index bd0a8c4..ffd1e97 100644 (file)
@@ -1,3 +1,16 @@
+2015-03-05  David Kilzer  <ddkilzer@apple.com>
+
+        Dashboard has trouble parsing iOS test output
+        <http://webkit.org/b/142364>
+
+        Reviewed by Alex Christensen.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
+        (BuildbotTestResults.prototype._parseResults.resultSummarizer):
+        Add fallback path to build a regex using 'matchString' so that
+        it matches anywhere in the line.  In practice, 'matchString' is
+        a prefix for the label following the number.
+
 2015-03-05  Alex Christensen  <achristensen@webkit.org>
 
         Fix linker warnings in TestWebKitAPI.