| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 import datetime | 29 import datetime |
| 30 import json | 30 import json |
| 31 import logging | 31 import logging |
| 32 import re | 32 import re |
| 33 import sys | 33 import sys |
| 34 import urllib2 | 34 import urllib2 |
| 35 import webapp2 | 35 import webapp2 |
| 36 | 36 |
| 37 from google.appengine.api import memcache | 37 from google.appengine.api import memcache |
| 38 | 38 |
| 39 from ..handlers import master_config | 39 import master_config |
| 40 | 40 |
| 41 # Buildbot steps that have test in the name, but don't run tests. | 41 # Buildbot steps that have test in the name, but don't run tests. |
| 42 NON_TEST_STEP_NAMES = [ | 42 NON_TEST_STEP_NAMES = [ |
| 43 'archive', | 43 'archive', |
| 44 'Run tests', | 44 'Run tests', |
| 45 'find isolated tests', | 45 'find isolated tests', |
| 46 'read test spec', | 46 'read test spec', |
| 47 'Download latest chromedriver', | 47 'Download latest chromedriver', |
| 48 'compile tests', | 48 'compile tests', |
| 49 'create_coverage_', | 49 'create_coverage_', |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 logging.error('Builders fetch failed: %s', str(ex)) | 198 logging.error('Builders fetch failed: %s', str(ex)) |
| 199 self.response.set_status(500) | 199 self.response.set_status(500) |
| 200 self.response.out.write(ex.message) | 200 self.response.out.write(ex.message) |
| 201 return | 201 return |
| 202 | 202 |
| 203 callback = self.request.get('callback') | 203 callback = self.request.get('callback') |
| 204 if callback: | 204 if callback: |
| 205 buildbot_data = callback + '(' + buildbot_data + ');' | 205 buildbot_data = callback + '(' + buildbot_data + ');' |
| 206 | 206 |
| 207 self.response.out.write(buildbot_data) | 207 self.response.out.write(buildbot_data) |
| OLD | NEW |