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

Side by Side Diff: testing/tools/run_corpus_tests.py

Issue 1244503003: Merge to XFA: Sort unexpected test results. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 5 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 | « no previous file | testing/tools/run_javascript_tests.py » ('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/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 shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 result = test_one_file(input_filename, source_dir, working_dir, 66 result = test_one_file(input_filename, source_dir, working_dir,
67 pdfium_test_path, image_differ) 67 pdfium_test_path, image_differ)
68 if test_suppressor.IsSuppressed(input_filename): 68 if test_suppressor.IsSuppressed(input_filename):
69 if result: 69 if result:
70 surprises.append(input_path) 70 surprises.append(input_path)
71 else: 71 else:
72 if not result: 72 if not result:
73 failures.append(input_path) 73 failures.append(input_path)
74 74
75 if surprises: 75 if surprises:
76 surprises.sort()
76 print '\n\nUnexpected Successes:' 77 print '\n\nUnexpected Successes:'
77 for surprise in surprises: 78 for surprise in surprises:
78 print surprise; 79 print surprise;
79 80
80 if failures: 81 if failures:
82 failures.sort()
81 print '\n\nSummary of Failures:' 83 print '\n\nSummary of Failures:'
82 for failure in failures: 84 for failure in failures:
83 print failure 85 print failure
84 return 1 86 return 1
85 87
86 return 0 88 return 0
87 89
88 90
89 if __name__ == '__main__': 91 if __name__ == '__main__':
90 sys.exit(main()) 92 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | testing/tools/run_javascript_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698