| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import glob | 6 import glob |
| 7 import json | 7 import json |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import subprocess | 10 import subprocess |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 for (filename, _, expected_error) in test_data: | 613 for (filename, _, expected_error) in test_data: |
| 614 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename) | 614 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename) |
| 615 self.assertTrue(expected_error in str(actual_error), | 615 self.assertTrue(expected_error in str(actual_error), |
| 616 "'%s' not found in '%s'" % (expected_error, actual_error)) | 616 "'%s' not found in '%s'" % (expected_error, actual_error)) |
| 617 | 617 |
| 618 | 618 |
| 619 class TryServerMasterTest(unittest.TestCase): | 619 class TryServerMasterTest(unittest.TestCase): |
| 620 def testTryServerMasters(self): | 620 def testTryServerMasters(self): |
| 621 bots = { | 621 bots = { |
| 622 'tryserver.chromium.gpu': [ | 622 'tryserver.chromium.gpu': [ |
| 623 'mac_gpu', | |
| 624 'mac_gpu_triggered_tests', | |
| 625 'linux_gpu', | 623 'linux_gpu', |
| 626 'linux_gpu_triggered_tests', | 624 'linux_gpu_triggered_tests', |
| 627 'win_gpu', | 625 'win_gpu', |
| 628 'win_gpu_triggered_tests', | 626 'win_gpu_triggered_tests', |
| 629 ], | 627 ], |
| 630 'tryserver.chromium.mac': [ | 628 'tryserver.chromium.mac': [ |
| 631 'ios_dbg_simulator', | 629 'ios_dbg_simulator', |
| 632 'ios_rel_device', | 630 'ios_rel_device', |
| 633 'ios_rel_device_ninja', | 631 'ios_rel_device_ninja', |
| 634 'mac_asan', | 632 'mac_asan', |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 } | 712 } |
| 715 for master, bots in bots.iteritems(): | 713 for master, bots in bots.iteritems(): |
| 716 for bot in bots: | 714 for bot in bots: |
| 717 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), | 715 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), |
| 718 'bot=%s: expected %s, computed %s' % ( | 716 'bot=%s: expected %s, computed %s' % ( |
| 719 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) | 717 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) |
| 720 | 718 |
| 721 | 719 |
| 722 if __name__ == '__main__': | 720 if __name__ == '__main__': |
| 723 unittest.main() | 721 unittest.main() |
| OLD | NEW |