summaryrefslogtreecommitdiff
path: root/testing/tools
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-03-23 12:27:20 -0700
committerTom Sepez <tsepez@chromium.org>2015-03-23 12:27:20 -0700
commit97c87e787710ee9ca5261eab928295db09c23024 (patch)
tree207089e5c3ae2c4978d0657769acd8a17e62f9da /testing/tools
parentda06966129f0a8ab918d2e28a3aae00bee237308 (diff)
downloadpdfium-97c87e787710ee9ca5261eab928295db09c23024.tar.xz
Create simple suppressions file in PDFium repository.
This is needed to green the tree without continually reverting the pdfium_tests (corpus) repository. We will need to make this more sophisticated at some point, but for now, let's try to green the buildbot. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1016613004
Diffstat (limited to 'testing/tools')
-rwxr-xr-xtesting/tools/run_corpus_tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 3cfc3e7dbb..d56cb1c238 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)