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

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: style changes 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 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import unittest
6
7 from webkitpy.w3c.deps_updater import DepsUpdater
8 from webkitpy.common.host_mock import MockHost
9
10
11 class DepsUpdaterTest(unittest.TestCase):
12
13 def test_parse_try_job_results(self):
14 output = """Successes:
15 linux_chromium_asan_rel_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/111111
16 mac_chromium_compile_dbg_ng http://build.chromium.org/p/trys erver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/222222
17 win_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.win/builders/win_chromium_rel_ng/builds/333333
18 Failures:
19 linux_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/linux_chromium_rel_ng/builds/444444
20 mac_chromium_10.10_rel_ng http://build.chromium.org/p/trys erver.chromium.mac/builders/mac_chromium_10.10_rel_ng/builds/555555
21 win_chromium_rel_ng http://build.chromium.org/p/trys erver.chromium.win/builders/win_chromium_rel_ng/builds/333333
22 Started:
23 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/777777
24 chromeos_daisy_chromium_compile_only_ng http://build.chromium.org/p/trys erver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/888 888
25 Total: 30 tryjobs
26 """
qyearsley 2016/07/07 02:35:47 This can be made narrower (and easier to read) if
27 host = MockHost()
28 updater = DepsUpdater(host)
29 self.assertEqual(updater.parse_try_job_results(output), {'Successes': se t(['mac_chromium_compile_dbg_ng', 'win_chromium_rel_ng',
30 'linux_chromium_asan_rel_ng']),
31 'Failures': set (['mac_chromium_10.10_rel_ng', 'linux_chromium_rel_ng']),
32 'Started': set( ['chromeos_amd64-generic_chromium_compile_only_ng',
33 'chromeos_daisy_chromium_compile_only_ng'])})
qyearsley 2016/07/07 02:35:47 Formatting suggestion: This will be easier to read
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698