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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py

Issue 2107993002: Add --auto-update flag which uploads committed CL and initiates the CQ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added unittest Created 4 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
OLDNEW
(Empty)
1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 #
7 # 1. Redistributions of source code must retain the above
8 # copyright notice, this list of conditions and the following
9 # disclaimer.
10 # 2. Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following
12 # disclaimer in the documentation and/or other materials
13 # provided with the distribution.
14 #
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
16 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
19 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
20 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
24 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
25 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 # SUCH DAMAGE.
qyearsley 2016/07/06 22:13:29 This copyright notice isn't required for new files
27
28 import unittest
29
30 from webkitpy.w3c.deps_updater import DepsUpdater
31 from webkitpy.common.host_mock import MockHost
32
33
34 class DepsUpdaterTest(unittest.TestCase):
35
36 def test_parse_try_job_results(self):
37 output = """Successes:
38 android_compile_dbg https://build.chromium.org/p/try server.chromium.android/builders/android_compile_dbg/builds/90409
39 cast_shell_android https://build.chromium.org/p/try server.chromium.android/builders/cast_shell_android/builds/90216
40 cast_shell_linux http://build.chromium.org/p/trys erver.chromium.linux/builders/cast_shell_linux/builds/184862
41 chromeos_x86-generic_chromium_compile_only_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/buil ds/161783
42 chromium_presubmit http://build.chromium.org/p/trys erver.chromium.linux/builders/chromium_presubmit/builds/210938
43 ios-device http://build.chromium.org/p/trys erver.chromium.mac/builders/ios-device/builds/29825
44 ios-device-gn http://build.chromium.org/p/trys erver.chromium.mac/builders/ios-device-gn/builds/30004
45 linux_android_rel_ng https://build.chromium.org/p/try server.chromium.android/builders/linux_android_rel_ng/builds/97103
46 linux_chromium_asan_rel_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/186393
47 mac_chromium_compile_dbg_ng http://build.chromium.org/p/trys erver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/228025
48 win_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.win/builders/win_chromium_rel_ng/builds/248882
49 Failures:
50 android_arm64_dbg_recipe https://build.chromium.org/p/try server.chromium.android/builders/android_arm64_dbg_recipe/builds/90183
51 android_clang_dbg_recipe https://build.chromium.org/p/try server.chromium.android/builders/android_clang_dbg_recipe/builds/90470
52 linux_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/linux_chromium_rel_ng/builds/255933
53 mac_chromium_10.10_rel_ng http://build.chromium.org/p/trys erver.chromium.mac/builders/mac_chromium_10.10_rel_ng/builds/106036
54 win_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.win/builders/win_chromium_rel_ng/builds/248882
55 win_chromium_x64_rel_ng http://build.chromium.org/p/trys erver.chromium.win/builders/win_chromium_x64_rel_ng/builds/238748
56 Started:
57 chromeos_amd64-generic_chromium_compile_only_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/bu ilds/161674
58 chromeos_daisy_chromium_compile_only_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/161 832
59 Total: 30 tryjobs
60 """
61 host = MockHost()
62 updater = DepsUpdater(host)
63 self.assertEqual(updater.parse_try_job_results(output), {'Successes': se t(['cast_shell_android', 'mac_chromium_compile_dbg_ng', 'ios-device-gn',
64 'android_compile_dbg', 'win_chromium_rel_ng', 'cast_shell_linux', 'ios-device ',
65 'chromeos_x86-generic_chromium_compile_only_ng', 'chromium_presubmit',
66 'linux_chromium_asan_rel_ng', 'linux_android_rel_ng']),
67 'Failures': set (['win_chromium_x64_rel_ng', 'android_arm64_dbg_recipe',
68 'android_clang_dbg_recipe', 'mac_chromium_10.10_rel_ng', 'linux_chromium_rel_n g']),
69 'Started': set( ['chromeos_amd64-generic_chromium_compile_only_ng', 'chromeos_daisy_chromium_com pile_only_ng'])})
qyearsley 2016/07/06 22:13:29 It might be easier to read the test if the test ex
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698