Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: PRESUBMIT_test.py

Issue 415323002: Update masters after the tryserver split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 641
642 input_api.files = [MockFile(filename, contents) 642 input_api.files = [MockFile(filename, contents)
643 for (filename, contents, _) in test_data] 643 for (filename, contents, _) in test_data]
644 644
645 for (filename, _, expected_error) in test_data: 645 for (filename, _, expected_error) in test_data:
646 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename) 646 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename)
647 self.assertTrue(expected_error in str(actual_error), 647 self.assertTrue(expected_error in str(actual_error),
648 "'%s' not found in '%s'" % (expected_error, actual_error)) 648 "'%s' not found in '%s'" % (expected_error, actual_error))
649 649
650 650
651 class TryServerMasterTest(unittest.TestCase):
652 def testTryServerMasters(self):
653 bots = {
agable 2014/07/24 23:58:03 I feel like this list is going to get really out o
Sergey Berezin 2014/07/25 00:55:45 It's just a test, making sure the current bots get
654 'tryserver.chromium.gpu': [
655 'mac_gpu',
656 'mac_gpu_triggered_tests',
657 'linux_gpu',
658 'linux_gpu_triggered_tests',
659 'win_gpu',
660 'win_gpu_triggered_tests',
661 ],
662 'tryserver.chromium.mac': [
663 'ios_dbg_simulator',
664 'ios_rel_device',
665 'ios_rel_device_ninja',
666 'mac_asan',
667 'mac_asan_64',
668 'mac_chromium_compile_dbg',
669 'mac_chromium_compile_rel',
670 'mac_chromium_dbg',
671 'mac_chromium_rel',
672 'mac_chromium_rel_swarming',
673 'mac_nacl_sdk',
674 'mac_nacl_sdk_build',
675 'mac_rel_naclmore',
676 'mac_valgrind',
677 'mac_x64_rel',
678 'mac_xcodebuild',
679 ],
680 'tryserver.chromium.linux': [
681 'android_aosp',
682 'android_chromium_gn_compile_dbg',
683 'android_chromium_gn_compile_rel',
684 'android_clang_dbg',
685 'android_dbg',
686 'android_dbg_recipe',
687 'android_dbg_triggered_tests',
688 'android_dbg_triggered_tests_recipe',
689 'android_fyi_dbg',
690 'android_fyi_dbg_triggered_tests',
691 'android_rel',
692 'android_rel_triggered_tests',
693 'android_x86_dbg',
694 'blink_android_compile_dbg',
695 'blink_android_compile_rel',
696 'blink_presubmit',
697 'chromium_presubmit',
698 'linux_arm_cross_compile',
699 'linux_arm_tester',
700 'linux_asan',
701 'linux_browser_asan',
702 'linux_chromeos_asan',
703 'linux_chromeos_browser_asan',
704 'linux_chromeos_valgrind',
705 'linux_chromium_chromeos_clang_dbg',
706 'linux_chromium_chromeos_clang_rel',
707 'linux_chromium_chromeos_dbg',
708 'linux_chromium_chromeos_rel',
709 'linux_chromium_clang_dbg',
710 'linux_chromium_clang_rel',
711 'linux_chromium_compile_dbg',
712 'linux_chromium_compile_rel',
713 'linux_chromium_dbg',
714 'linux_chromium_gn_dbg',
715 'linux_chromium_gn_rel',
716 'linux_chromium_rel',
717 'linux_chromium_rel_swarming',
718 'linux_chromium_trusty32_dbg',
719 'linux_chromium_trusty32_rel',
720 'linux_chromium_trusty_dbg',
721 'linux_chromium_trusty_rel',
722 'linux_clang_tsan',
723 'linux_ecs_ozone',
724 'linux_layout',
725 'linux_layout_asan',
726 'linux_layout_rel',
727 'linux_layout_rel_32',
728 'linux_nacl_sdk',
729 'linux_nacl_sdk_bionic',
730 'linux_nacl_sdk_bionic_build',
731 'linux_nacl_sdk_build',
732 'linux_redux',
733 'linux_rel_naclmore',
734 'linux_rel_precise32',
735 'linux_valgrind',
736 'tools_build_presubmit',
737 ],
738 'tryserver.chromium.win': [
739 'win8_aura',
740 'win8_chromium_dbg',
741 'win8_chromium_rel',
742 'win_chromium_compile_dbg',
743 'win_chromium_compile_rel',
744 'win_chromium_dbg',
745 'win_chromium_rel',
746 'win_chromium_rel',
747 'win_chromium_rel_swarming',
748 'win_chromium_rel_swarming',
749 'win_chromium_x64_dbg',
750 'win_chromium_x64_rel',
751 'win_drmemory',
752 'win_nacl_sdk',
753 'win_nacl_sdk_build',
754 'win_rel_naclmore',
755 ],
756 }
757 for master, bots in bots.iteritems():
758 for bot in bots:
759 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot),
760 'bot=%s: expected %s, computed %s' % (
761 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot)))
762
763
651 if __name__ == '__main__': 764 if __name__ == '__main__':
652 unittest.main() 765 unittest.main()
OLDNEW
« PRESUBMIT.py ('K') | « PRESUBMIT.py ('k') | ash/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698