Flakiness dashboard build fix.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2013 21:44:55 +0000 (21:44 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2013 21:44:55 +0000 (21:44 +0000)
* TestResultServer/static-dashboards/flakiness_dashboard.js:
(processTestRunsForBuilder):

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

Tools/ChangeLog
Tools/TestResultServer/static-dashboards/flakiness_dashboard.js

index 31422df..f35be51 100644 (file)
@@ -1,3 +1,10 @@
+2013-08-14  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Flakiness dashboard build fix.
+
+        * TestResultServer/static-dashboards/flakiness_dashboard.js:
+        (processTestRunsForBuilder):
+
 2013-08-14  Martin Robinson  <mrobinson@igalia.com>
 
         [GTK] [CMake] Add support for building TestWebKitAPI
index 42ddf7e..956cb7b 100644 (file)
@@ -599,6 +599,9 @@ traversePlatformsTree(function(platform, platformName) {
 // of all tests run on the win-debug builders.
 function allTestsWithSamePlatformAndBuildType(platform, buildType)
 {
+    if (!g_allTestsByPlatformAndBuildType[platform])
+        return {};
+
     if (!g_allTestsByPlatformAndBuildType[platform][buildType]) {
         var tests = {};
         for (var thisBuilder in currentBuilders()) {
@@ -903,6 +906,9 @@ function processTestRunsForBuilder(builderName)
     var buildInfo = platformAndBuildType(builderName);
     var platform = buildInfo.platform;
     var buildType = buildInfo.buildType;
+    if (!platform)
+        return;
+
     processMissingTestsWithExpectations(builderName, platform, buildType);
 
     var failures = [];