Changeset 90656 in webkit
- Timestamp:
- Jul 8, 2011 12:51:16 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestResultsLoader.js
r90489 r90656 31 31 start: function(buildName, callback, errorCallback) { 32 32 var cacheKey = 'LayoutTestResultsLoader.' + this._builder.name + '.' + buildName; 33 const currentCachedDataVersion = 2;33 const currentCachedDataVersion = 3; 34 34 if (PersistentCache.contains(cacheKey)) { 35 35 var cachedData = PersistentCache.get(cacheKey); 36 36 if (cachedData.version === currentCachedDataVersion) { 37 callback(cachedData.tests, cachedData.tooManyFailures); 37 if (cachedData.error) 38 errorCallback(cachedData.tests, cachedData.tooManyFailures); 39 else 40 callback(cachedData.tests, cachedData.tooManyFailures); 38 41 return; 39 42 } 40 43 } 41 44 42 var result = { tests: {}, tooManyFailures: false, version: currentCachedDataVersion };45 var result = { tests: {}, tooManyFailures: false, error: false, version: currentCachedDataVersion }; 43 46 44 47 function cacheParseResultsAndCallCallback(parseResult) { … … 54 57 self._fetchAndParseORWTResults(buildName, cacheParseResultsAndCallCallback, function() { 55 58 // We couldn't fetch results for this build. 59 result.error = true; 56 60 PersistentCache.set(cacheKey, result); 57 61 errorCallback(result.tests, result.tooManyFailures); -
trunk/Tools/ChangeLog
r90652 r90656 1 2011-07-08 Adam Roben <aroben@apple.com> 2 3 Make TestFailures remember that run-webkit-tests timed out, even across reloads 4 5 Fixes <http://webkit.org/b/64193> TestFailures page incorrectly thinks all tests passed in 6 http://build.webkit.org/builders/Windows%207%20Release%20(Tests)/builds/14589 after a reload 7 8 Reviewed by Daniel Bates. 9 10 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestResultsLoader.js: 11 (LayoutTestResultsLoader.prototype.start): Store an "error" attribute in the cached data. 12 When true, it indicates that there was an error retrieving the results for this build and 13 that the errorCallback should be called. 14 1 15 2011-07-08 Adam Barth <abarth@webkit.org> 2 16
Note: See TracChangeset
for help on using the changeset viewer.