OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The PDFium Authors. All rights reserved. | 2 # Copyright 2015 The PDFium 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 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import re | 8 import re |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if input_file_re.match(input_filename): | 63 if input_file_re.match(input_filename): |
64 input_path = os.path.join(source_dir, input_filename) | 64 input_path = os.path.join(source_dir, input_filename) |
65 if os.path.isfile(input_path): | 65 if os.path.isfile(input_path): |
66 if test_suppressor.IsSuppressed(input_filename): | 66 if test_suppressor.IsSuppressed(input_filename): |
67 continue | 67 continue |
68 if not generate_and_test(input_filename, source_dir, working_dir, | 68 if not generate_and_test(input_filename, source_dir, working_dir, |
69 fixup_path, pdfium_test_path, image_differ): | 69 fixup_path, pdfium_test_path, image_differ): |
70 failures.append(input_path) | 70 failures.append(input_path) |
71 | 71 |
72 if failures: | 72 if failures: |
| 73 failures.sort() |
73 print '\n\nSummary of Failures:' | 74 print '\n\nSummary of Failures:' |
74 for failure in failures: | 75 for failure in failures: |
75 print failure | 76 print failure |
76 return 1 | 77 return 1 |
77 return 0 | 78 return 0 |
78 | 79 |
79 if __name__ == '__main__': | 80 if __name__ == '__main__': |
80 sys.exit(main()) | 81 sys.exit(main()) |
OLD | NEW |