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

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

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 years, 11 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """dedup-tests -- print test results duplicated between win and linux. 6 """dedup-tests -- print test results duplicated between win and linux.
7 7
8 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
9 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
10 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
(...skipping 29 matching lines...) Expand all
40 hashes[hash].add(file) 40 hashes[hash].add(file)
41 41
42 # Dump out duplicated files. 42 # Dump out duplicated files.
43 for cluster in hashes.values(): 43 for cluster in hashes.values():
44 if len(cluster) < 2: 44 if len(cluster) < 2:
45 continue 45 continue
46 for file in cluster: 46 for file in cluster:
47 if '/chromium-linux/' in file: 47 if '/chromium-linux/' in file:
48 if file.replace('/chromium-linux/', '/chromium-win/') in cluster: 48 if file.replace('/chromium-linux/', '/chromium-win/') in cluster:
49 print file 49 print file
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698