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

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: 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 = {
654 'tryserver.chromium.linux': [
655 'linux_chromeos_asan',
M-A Ruel 2014/07/24 23:38:22 sort
Sergey Berezin 2014/07/24 23:45:43 Done.
656 'linux_chromium_rel_swarming',
657 'linux_chromium_chromeos_clang_dbg',
658 'chromium_presubmit',
659 'linux_chromium_chromeos_rel',
660 'linux_chromium_clang_dbg',
661 'linux_chromium_gn_rel',
662 'android_chromium_gn_compile_rel',
663 'linux_ecs_ozone',
664 'linux_chromium_rel',
665 'linux_chromium_dbg',
666 'linux_nacl_sdk_build',
667 'tools_build_presubmit',
668 'linux_valgrind',
669 'android_chromium_gn_compile_dbg',
670 'linux_chromium_chromeos_clang_rel',
671 'linux_rel_naclmore',
672 'linux_nacl_sdk_bionic_build',
673 'linux_layout',
674 'linux_chromium_compile_rel',
675 'linux_asan',
676 'linux_nacl_sdk_bionic',
677 'linux_chromium_chromeos_dbg',
678 'linux_chromeos_valgrind',
679 'linux_browser_asan',
680 'linux_chromeos_browser_asan',
681 'linux_nacl_sdk',
682 'linux_chromium_gn_dbg',
683 'linux_redux',
684 'linux_chromium_clang_rel',
685 'linux_chromium_compile_dbg',
686 'blink_presubmit',
687 'linux_layout_rel',
688 'android_dbg_triggered_tests',
689 'android_dbg_triggered_tests_recipe',
690 'android_fyi_dbg_triggered_tests',
691 'android_rel_triggered_tests',
692 'android_dbg',
693 'android_clang_dbg',
694 'android_dbg_recipe',
695 'android_rel',
696 'blink_android_compile_dbg',
697 'android_fyi_dbg',
698 'blink_android_compile_rel',
699 'android_x86_dbg',
700 'android_aosp',
701 'linux_rel_precise32',
702 'linux_arm_cross_compile',
703 'linux_layout_asan',
704 'linux_layout_rel_32',
705 'linux_arm_tester',
706 'linux_chromium_trusty32_rel',
707 'linux_chromium_trusty32_dbg',
708 'linux_chromium_trusty_rel',
709 'linux_chromium_trusty_dbg',
710 'linux_clang_tsan',
711 ],
712 'tryserver.chromium.win': [
713 '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.
714 'win_chromium_x64_dbg',
715 'win_chromium_compile_dbg',
716 'win_chromium_dbg',
717 'win8_chromium_rel',
718 'win8_aura',
719 'win8_chromium_dbg',
720 'win_drmemory',
721 'win_chromium_rel',
722 'win_chromium_rel_swarming',
723 'win_nacl_sdk_build',
724 'win_rel_naclmore',
725 'win_chromium_compile_rel',
726 'win_nacl_sdk',
727 'win_chromium_rel',
728 'win_chromium_rel_swarming'],
729 'tryserver.chromium.mac': [
730 'ios_rel_device',
731 'ios_dbg_simulator',
732 'ios_rel_device_ninja',
733 'mac_nacl_sdk',
734 'mac_xcodebuild',
735 'mac_valgrind',
736 'mac_x64_rel',
737 'mac_asan_64',
738 'mac_chromium_rel',
739 'mac_chromium_compile_dbg',
740 'mac_chromium_rel_swarming',
741 'mac_chromium_dbg',
742 'mac_asan',
743 'mac_rel_naclmore',
744 'mac_chromium_compile_rel',
745 'mac_nacl_sdk_build'],
746 'tryserver.chromium.gpu': [
747 'linux_gpu', 'win_gpu', 'mac_gpu',
748 'linux_gpu_triggered_tests',
749 'mac_gpu_triggered_tests',
750 'win_gpu_triggered_tests',
751 ],
752 }
753 for master, bots in bots.iteritems():
754 for bot in bots:
755 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot),
756 'bot=%s: expected %s, computed %s' % (
757 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot)))
758
759
651 if __name__ == '__main__': 760 if __name__ == '__main__':
652 unittest.main() 761 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