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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 'tryserver.chromium.mac': [ | 744 'tryserver.chromium.mac': [ |
745 'ios_dbg_simulator', | 745 'ios_dbg_simulator', |
746 'ios_rel_device', | 746 'ios_rel_device', |
747 'ios_rel_device_ninja', | 747 'ios_rel_device_ninja', |
748 'mac_asan', | 748 'mac_asan', |
749 'mac_asan_64', | 749 'mac_asan_64', |
750 'mac_chromium_compile_dbg', | 750 'mac_chromium_compile_dbg', |
751 'mac_chromium_compile_rel', | 751 'mac_chromium_compile_rel', |
752 'mac_chromium_dbg', | 752 'mac_chromium_dbg', |
753 'mac_chromium_rel', | 753 'mac_chromium_rel', |
754 'mac_chromium_rel_swarming', | |
755 'mac_nacl_sdk', | 754 'mac_nacl_sdk', |
756 'mac_nacl_sdk_build', | 755 'mac_nacl_sdk_build', |
757 'mac_rel_naclmore', | 756 'mac_rel_naclmore', |
758 'mac_valgrind', | 757 'mac_valgrind', |
759 'mac_x64_rel', | 758 'mac_x64_rel', |
760 'mac_xcodebuild', | 759 'mac_xcodebuild', |
761 ], | 760 ], |
762 'tryserver.chromium.linux': [ | 761 'tryserver.chromium.linux': [ |
763 'android_aosp', | 762 'android_aosp', |
764 'android_chromium_gn_compile_dbg', | 763 'android_chromium_gn_compile_dbg', |
(...skipping 22 matching lines...) Expand all Loading... |
787 'linux_chromium_chromeos_dbg', | 786 'linux_chromium_chromeos_dbg', |
788 'linux_chromium_chromeos_rel', | 787 'linux_chromium_chromeos_rel', |
789 'linux_chromium_clang_dbg', | 788 'linux_chromium_clang_dbg', |
790 'linux_chromium_clang_rel', | 789 'linux_chromium_clang_rel', |
791 'linux_chromium_compile_dbg', | 790 'linux_chromium_compile_dbg', |
792 'linux_chromium_compile_rel', | 791 'linux_chromium_compile_rel', |
793 'linux_chromium_dbg', | 792 'linux_chromium_dbg', |
794 'linux_chromium_gn_dbg', | 793 'linux_chromium_gn_dbg', |
795 'linux_chromium_gn_rel', | 794 'linux_chromium_gn_rel', |
796 'linux_chromium_rel', | 795 'linux_chromium_rel', |
797 'linux_chromium_rel_swarming', | |
798 'linux_chromium_trusty32_dbg', | 796 'linux_chromium_trusty32_dbg', |
799 'linux_chromium_trusty32_rel', | 797 'linux_chromium_trusty32_rel', |
800 'linux_chromium_trusty_dbg', | 798 'linux_chromium_trusty_dbg', |
801 'linux_chromium_trusty_rel', | 799 'linux_chromium_trusty_rel', |
802 'linux_clang_tsan', | 800 'linux_clang_tsan', |
803 'linux_ecs_ozone', | 801 'linux_ecs_ozone', |
804 'linux_layout', | 802 'linux_layout', |
805 'linux_layout_asan', | 803 'linux_layout_asan', |
806 'linux_layout_rel', | 804 'linux_layout_rel', |
807 'linux_layout_rel_32', | 805 'linux_layout_rel_32', |
808 'linux_nacl_sdk', | 806 'linux_nacl_sdk', |
809 'linux_nacl_sdk_bionic', | 807 'linux_nacl_sdk_bionic', |
810 'linux_nacl_sdk_bionic_build', | 808 'linux_nacl_sdk_bionic_build', |
811 'linux_nacl_sdk_build', | 809 'linux_nacl_sdk_build', |
812 'linux_redux', | 810 'linux_redux', |
813 'linux_rel_naclmore', | 811 'linux_rel_naclmore', |
814 'linux_rel_precise32', | 812 'linux_rel_precise32', |
815 'linux_valgrind', | 813 'linux_valgrind', |
816 'tools_build_presubmit', | 814 'tools_build_presubmit', |
817 ], | 815 ], |
818 'tryserver.chromium.win': [ | 816 'tryserver.chromium.win': [ |
819 'win8_aura', | 817 'win8_aura', |
820 'win8_chromium_dbg', | 818 'win8_chromium_dbg', |
821 'win8_chromium_rel', | 819 'win8_chromium_rel', |
822 'win_chromium_compile_dbg', | 820 'win_chromium_compile_dbg', |
823 'win_chromium_compile_rel', | 821 'win_chromium_compile_rel', |
824 'win_chromium_dbg', | 822 'win_chromium_dbg', |
825 'win_chromium_rel', | 823 'win_chromium_rel', |
826 'win_chromium_rel', | 824 'win_chromium_rel', |
827 'win_chromium_rel_swarming', | |
828 'win_chromium_rel_swarming', | |
829 'win_chromium_x64_dbg', | 825 'win_chromium_x64_dbg', |
830 'win_chromium_x64_rel', | 826 'win_chromium_x64_rel', |
831 'win_drmemory', | 827 'win_drmemory', |
832 'win_nacl_sdk', | 828 'win_nacl_sdk', |
833 'win_nacl_sdk_build', | 829 'win_nacl_sdk_build', |
834 'win_rel_naclmore', | 830 'win_rel_naclmore', |
835 ], | 831 ], |
836 } | 832 } |
837 for master, bots in bots.iteritems(): | 833 for master, bots in bots.iteritems(): |
838 for bot in bots: | 834 for bot in bots: |
839 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), | 835 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), |
840 'bot=%s: expected %s, computed %s' % ( | 836 'bot=%s: expected %s, computed %s' % ( |
841 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) | 837 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) |
842 | 838 |
843 | 839 |
844 if __name__ == '__main__': | 840 if __name__ == '__main__': |
845 unittest.main() | 841 unittest.main() |
OLD | NEW |