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