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

Side by Side Diff: webkit/tools/layout_tests/dedup-tests.py

Issue 521009: Clarify licenses on a bunch of files. (Closed)
Patch Set: Created 10 years, 12 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
« no previous file with comments | « webkit/glue/plugins/test/resource.h ('k') | webkit/tools/test_shell/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
2 5
3 """dedup-tests -- print test results duplicated between win and linux. 6 """dedup-tests -- print test results duplicated between win and linux.
4 7
5 Because the outputs are very similar, we fall back on Windows outputs 8 Because the outputs are very similar, we fall back on Windows outputs
6 if there isn't an expected output for Linux layout tests. This means 9 if there isn't an expected output for Linux layout tests. This means
7 that any file that is duplicated between the Linux and Windows directories 10 that any file that is duplicated between the Linux and Windows directories
8 is redundant. 11 is redundant.
9 12
10 This command dumps out all such files. You can use it like: 13 This command dumps out all such files. You can use it like:
11 dedup-tests.py # print out the bad files 14 dedup-tests.py # print out the bad files
(...skipping 25 matching lines...) Expand all
37 hashes[hash].add(file) 40 hashes[hash].add(file)
38 41
39 # Dump out duplicated files. 42 # Dump out duplicated files.
40 for cluster in hashes.values(): 43 for cluster in hashes.values():
41 if len(cluster) < 2: 44 if len(cluster) < 2:
42 continue 45 continue
43 for file in cluster: 46 for file in cluster:
44 if '/chromium-linux/' in file: 47 if '/chromium-linux/' in file:
45 if file.replace('/chromium-linux/', '/chromium-win/') in cluster: 48 if file.replace('/chromium-linux/', '/chromium-win/') in cluster:
46 print file 49 print file
OLDNEW
« no previous file with comments | « webkit/glue/plugins/test/resource.h ('k') | webkit/tools/test_shell/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698