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

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

Issue 2679173005: Rename Host.scm -> Host.git. (Closed)
Patch Set: Created 3 years, 10 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: 7 If this script is given the argument --auto-update, it will also:
8 1. Upload a CL. 8 1. Upload a CL.
9 2. Trigger try jobs and wait for them to complete. 9 2. Trigger try jobs and wait for them to complete.
10 3. Make any changes that are required for new failing tests. 10 3. Make any changes that are required for new failing tests.
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 'upload', 367 'upload',
368 '-f', 368 '-f',
369 '--rietveld', 369 '--rietveld',
370 '-m', 370 '-m',
371 description, 371 description,
372 ] + ['--cc=' + email for email in cc_list]) 372 ] + ['--cc=' + email for email in cc_list])
373 373
374 def get_directory_owners(self): 374 def get_directory_owners(self):
375 """Returns a list of email addresses of owners of changed tests.""" 375 """Returns a list of email addresses of owners of changed tests."""
376 _log.info('Gathering directory owners emails to CC.') 376 _log.info('Gathering directory owners emails to CC.')
377 changed_files = self.host.scm().changed_files() 377 changed_files = self.host.git().changed_files()
378 extractor = DirectoryOwnersExtractor(self.fs) 378 extractor = DirectoryOwnersExtractor(self.fs)
379 extractor.read_owner_map() 379 extractor.read_owner_map()
380 return extractor.list_owners(changed_files) 380 return extractor.list_owners(changed_files)
381 381
382 def _cl_description(self): 382 def _cl_description(self):
383 description = self.check_run(['git', 'log', '-1', '--format=%B']) 383 description = self.check_run(['git', 'log', '-1', '--format=%B'])
384 build_link = current_build_link(self.host) 384 build_link = current_build_link(self.host)
385 if build_link: 385 if build_link:
386 description += 'Build: %s\n\n' % build_link 386 description += 'Build: %s\n\n' % build_link
387 description += 'TBR=qyearsley@chromium.org\n' 387 description += 'TBR=qyearsley@chromium.org\n'
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 """Returns a dict mapping source to dest name for layout tests that have been renamed.""" 443 """Returns a dict mapping source to dest name for layout tests that have been renamed."""
444 out = self.check_run(['git', 'diff', 'origin/master', '-M100%', '--diff- filter=R', '--name-status']) 444 out = self.check_run(['git', 'diff', 'origin/master', '-M100%', '--diff- filter=R', '--name-status'])
445 renamed_tests = {} 445 renamed_tests = {}
446 for line in out.splitlines(): 446 for line in out.splitlines():
447 _, source_path, dest_path = line.split() 447 _, source_path, dest_path = line.split()
448 source_test = self.finder.layout_test_name(source_path) 448 source_test = self.finder.layout_test_name(source_path)
449 dest_test = self.finder.layout_test_name(dest_path) 449 dest_test = self.finder.layout_test_name(dest_path)
450 if source_test and dest_test: 450 if source_test and dest_test:
451 renamed_tests[source_test] = dest_test 451 renamed_tests[source_test] = dest_test
452 return renamed_tests 452 return renamed_tests
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698