Chromium Code Reviews| Index: PRESUBMIT_test.py |
| diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py |
| index f81b316aa2e025c261369e86d4ed32d106236493..6559d4c715c69b68d95e47b39a47bba76d307e15 100755 |
| --- a/PRESUBMIT_test.py |
| +++ b/PRESUBMIT_test.py |
| @@ -648,5 +648,114 @@ class IDLParsingTest(unittest.TestCase): |
| "'%s' not found in '%s'" % (expected_error, actual_error)) |
| +class TryServerMasterTest(unittest.TestCase): |
| + def testTryServerMasters(self): |
| + bots = { |
| + 'tryserver.chromium.linux': [ |
| + 'linux_chromeos_asan', |
|
M-A Ruel
2014/07/24 23:38:22
sort
Sergey Berezin
2014/07/24 23:45:43
Done.
|
| + 'linux_chromium_rel_swarming', |
| + 'linux_chromium_chromeos_clang_dbg', |
| + 'chromium_presubmit', |
| + 'linux_chromium_chromeos_rel', |
| + 'linux_chromium_clang_dbg', |
| + 'linux_chromium_gn_rel', |
| + 'android_chromium_gn_compile_rel', |
| + 'linux_ecs_ozone', |
| + 'linux_chromium_rel', |
| + 'linux_chromium_dbg', |
| + 'linux_nacl_sdk_build', |
| + 'tools_build_presubmit', |
| + 'linux_valgrind', |
| + 'android_chromium_gn_compile_dbg', |
| + 'linux_chromium_chromeos_clang_rel', |
| + 'linux_rel_naclmore', |
| + 'linux_nacl_sdk_bionic_build', |
| + 'linux_layout', |
| + 'linux_chromium_compile_rel', |
| + 'linux_asan', |
| + 'linux_nacl_sdk_bionic', |
| + 'linux_chromium_chromeos_dbg', |
| + 'linux_chromeos_valgrind', |
| + 'linux_browser_asan', |
| + 'linux_chromeos_browser_asan', |
| + 'linux_nacl_sdk', |
| + 'linux_chromium_gn_dbg', |
| + 'linux_redux', |
| + 'linux_chromium_clang_rel', |
| + 'linux_chromium_compile_dbg', |
| + 'blink_presubmit', |
| + 'linux_layout_rel', |
| + 'android_dbg_triggered_tests', |
| + 'android_dbg_triggered_tests_recipe', |
| + 'android_fyi_dbg_triggered_tests', |
| + 'android_rel_triggered_tests', |
| + 'android_dbg', |
| + 'android_clang_dbg', |
| + 'android_dbg_recipe', |
| + 'android_rel', |
| + 'blink_android_compile_dbg', |
| + 'android_fyi_dbg', |
| + 'blink_android_compile_rel', |
| + 'android_x86_dbg', |
| + 'android_aosp', |
| + 'linux_rel_precise32', |
| + 'linux_arm_cross_compile', |
| + 'linux_layout_asan', |
| + 'linux_layout_rel_32', |
| + 'linux_arm_tester', |
| + 'linux_chromium_trusty32_rel', |
| + 'linux_chromium_trusty32_dbg', |
| + 'linux_chromium_trusty_rel', |
| + 'linux_chromium_trusty_dbg', |
| + 'linux_clang_tsan', |
| + ], |
| + 'tryserver.chromium.win': [ |
| + 'win_chromium_x64_rel', |
|
M-A Ruel
2014/07/24 23:38:22
sort all, including the keys
Sergey Berezin
2014/07/24 23:45:43
Done.
|
| + 'win_chromium_x64_dbg', |
| + 'win_chromium_compile_dbg', |
| + 'win_chromium_dbg', |
| + 'win8_chromium_rel', |
| + 'win8_aura', |
| + 'win8_chromium_dbg', |
| + 'win_drmemory', |
| + 'win_chromium_rel', |
| + 'win_chromium_rel_swarming', |
| + 'win_nacl_sdk_build', |
| + 'win_rel_naclmore', |
| + 'win_chromium_compile_rel', |
| + 'win_nacl_sdk', |
| + 'win_chromium_rel', |
| + 'win_chromium_rel_swarming'], |
| + 'tryserver.chromium.mac': [ |
| + 'ios_rel_device', |
| + 'ios_dbg_simulator', |
| + 'ios_rel_device_ninja', |
| + 'mac_nacl_sdk', |
| + 'mac_xcodebuild', |
| + 'mac_valgrind', |
| + 'mac_x64_rel', |
| + 'mac_asan_64', |
| + 'mac_chromium_rel', |
| + 'mac_chromium_compile_dbg', |
| + 'mac_chromium_rel_swarming', |
| + 'mac_chromium_dbg', |
| + 'mac_asan', |
| + 'mac_rel_naclmore', |
| + 'mac_chromium_compile_rel', |
| + 'mac_nacl_sdk_build'], |
| + 'tryserver.chromium.gpu': [ |
| + 'linux_gpu', 'win_gpu', 'mac_gpu', |
| + 'linux_gpu_triggered_tests', |
| + 'mac_gpu_triggered_tests', |
| + 'win_gpu_triggered_tests', |
| + ], |
| + } |
| + for master, bots in bots.iteritems(): |
| + for bot in bots: |
| + self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), |
| + 'bot=%s: expected %s, computed %s' % ( |
| + bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) |
| + |
| + |
| if __name__ == '__main__': |
| unittest.main() |