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

Unified Diff: testing/tools/run_corpus_tests.py

Issue 1016613004: Create simple suppressions file in PDFium repository. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: List Comprehensions Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/SUPPRESSIONS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/tools/run_corpus_tests.py
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 3cfc3e7dbbe07a0f91e318c076626453406229df..d56cb1c238232b34b754d872bda5a32b391a4abf 100755
--- a/testing/tools/run_corpus_tests.py
+++ b/testing/tools/run_corpus_tests.py
@@ -86,6 +86,9 @@ def main():
if not os.path.exists(working_dir):
os.makedirs(working_dir)
+ with open(os.path.join(testing_dir, 'SUPPRESSIONS')) as f:
+ suppression_list = [x.strip() for x in f.readlines()]
+
# test files are under .../pdfium/testing/corpus.
failures = []
walk_from_dir = os.path.join(testing_dir, 'corpus');
@@ -95,7 +98,10 @@ def main():
if input_file_re.match(input_filename):
input_path = os.path.join(source_dir, input_filename)
if os.path.isfile(input_path):
- if not test_one_file(input_filename, source_dir, working_dir,
+ if input_filename in suppression_list:
+ print "Not running %s, found in SUPPRESSIONS file" % input_filename
+ continue
+ if not test_one_file(input_filename, source_dir, working_dir,
pdfium_test_path, pdfium_diff_path):
failures.append(input_path)
« no previous file with comments | « testing/SUPPRESSIONS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698