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

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

Issue 2337183002: Add --help and --verbose options to update-w3c-test-expectations. (Closed)
Patch Set: Remove unrelated files, remove extra parse_args function and a couple logging statements Created 4 years, 3 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Fetches a copy of the latest state of a W3C test repository and commits. 5 """Fetches a copy of the latest state of a W3C test repository and commits.
6 6
7 If this script is given the argument --auto-update, it will also attempt to 7 If this script is given the argument --auto-update, it will also attempt to
8 upload a CL, triggery try jobs, and make any changes that are required for 8 upload a CL, triggery try jobs, and make any changes that are required for
9 new failing tests before committing. 9 new failing tests before committing.
10 """ 10 """
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 if test_path is None: 361 if test_path is None:
362 continue 362 continue
363 test_dir = self.fs.dirname(test_path) 363 test_dir = self.fs.dirname(test_path)
364 if test_dir in directory_to_owner: 364 if test_dir in directory_to_owner:
365 email_addresses.add(directory_to_owner[test_dir]) 365 email_addresses.add(directory_to_owner[test_dir])
366 return sorted(email_addresses) 366 return sorted(email_addresses)
367 367
368 def write_test_expectations(self): 368 def write_test_expectations(self):
369 self.print_('## Adding test expectations lines to LayoutTests/TestExpect ations.') 369 self.print_('## Adding test expectations lines to LayoutTests/TestExpect ations.')
370 script_path = self.path_from_webkit_base('Tools', 'Scripts', 'update-w3c -test-expectations') 370 script_path = self.path_from_webkit_base('Tools', 'Scripts', 'update-w3c -test-expectations')
371 self.run([self.host.executable, script_path]) 371 self.run([self.host.executable, script_path, '--verbose'])
372 message = '\'Modifies TestExpectations and/or downloads new baselines fo r tests\'' 372 message = '\'Modifies TestExpectations and/or downloads new baselines fo r tests\''
373 self.check_run(['git', 'commit', '-a', '-m', message]) 373 self.check_run(['git', 'commit', '-a', '-m', message])
374 self.git_cl.run(['upload', '-m', message, '--rietveld']) 374 self.git_cl.run(['upload', '-m', message, '--rietveld'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698