OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 ''' | 3 ''' |
4 Copyright 2012 Google Inc. | 4 Copyright 2012 Google Inc. |
5 | 5 |
6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
7 found in the LICENSE file. | 7 found in the LICENSE file. |
8 ''' | 8 ''' |
9 | 9 |
10 ''' | 10 ''' |
(...skipping 20 matching lines...) Expand all Loading... |
31 # This assumes that the 'gm' directory has been checked out as a sibling of | 31 # This assumes that the 'gm' directory has been checked out as a sibling of |
32 # the 'tools' directory containing this script, which will be the case if | 32 # the 'tools' directory containing this script, which will be the case if |
33 # 'trunk' was checked out as a single unit. | 33 # 'trunk' was checked out as a single unit. |
34 GM_DIRECTORY = os.path.realpath( | 34 GM_DIRECTORY = os.path.realpath( |
35 os.path.join(os.path.dirname(os.path.dirname(__file__)), 'gm')) | 35 os.path.join(os.path.dirname(os.path.dirname(__file__)), 'gm')) |
36 if GM_DIRECTORY not in sys.path: | 36 if GM_DIRECTORY not in sys.path: |
37 sys.path.append(GM_DIRECTORY) | 37 sys.path.append(GM_DIRECTORY) |
38 import buildbot_globals | 38 import buildbot_globals |
39 import gm_json | 39 import gm_json |
40 | 40 |
41 MASTER_HOST_URL = 'http://%s:%s' % (buildbot_globals.Get('master_host'), | 41 MASTER_HOST_URL = 'http://%s:%s' % ( |
42 buildbot_globals.Get('external_port')) | 42 buildbot_globals.Get('public_master_host'), |
| 43 buildbot_globals.Get('public_external_port')) |
43 ALL_BUILDERS = list(json.load(urllib2.urlopen( | 44 ALL_BUILDERS = list(json.load(urllib2.urlopen( |
44 MASTER_HOST_URL + '/json/builders'))) | 45 MASTER_HOST_URL + '/json/builders'))) |
45 TEST_BUILDERS = filter(lambda x: 'Trybot' not in x and 'Test' in x, | 46 TEST_BUILDERS = filter(lambda x: 'Trybot' not in x and 'Test' in x, |
46 ALL_BUILDERS) | 47 ALL_BUILDERS) |
47 | 48 |
48 class _InternalException(Exception): | 49 class _InternalException(Exception): |
49 pass | 50 pass |
50 | 51 |
51 # Object that handles exceptions, either raising them immediately or collecting | 52 # Object that handles exceptions, either raising them immediately or collecting |
52 # them to display later on. | 53 # them to display later on. |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 add_new=args.add_new) | 332 add_new=args.add_new) |
332 try: | 333 try: |
333 rebaseliner.RebaselineSubdir(builder=builder) | 334 rebaseliner.RebaselineSubdir(builder=builder) |
334 except BaseException as e: | 335 except BaseException as e: |
335 exception_handler.RaiseExceptionOrContinue(e) | 336 exception_handler.RaiseExceptionOrContinue(e) |
336 else: | 337 else: |
337 exception_handler.RaiseExceptionOrContinue(_InternalException( | 338 exception_handler.RaiseExceptionOrContinue(_InternalException( |
338 'expectations_json_file %s not found' % expectations_json_file)) | 339 'expectations_json_file %s not found' % expectations_json_file)) |
339 | 340 |
340 exception_handler.ReportAllFailures() | 341 exception_handler.ReportAllFailures() |
OLD | NEW |