OLD | NEW |
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 Loading... |
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 |
OLD | NEW |