summaryrefslogtreecommitdiff
path: root/testing/tools/run_corpus_tests.py
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-18 17:15:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-18 17:15:42 -0700
commit86d945b2d24edade9c7175be1c31b246f54b04ca (patch)
tree771654816efbe6e3b521814dd7208a3d605d5e88 /testing/tools/run_corpus_tests.py
parentf09bdfa90d6324813309e987a07b28c1b75aec72 (diff)
downloadpdfium-86d945b2d24edade9c7175be1c31b246f54b04ca.tar.xz
Exclude XFA-only corpus from non-xfa and roll corpus.
Test still need modification to process input events. For now, we just suppress anything that diffs. Review URL: https://codereview.chromium.org/1894083003
Diffstat (limited to 'testing/tools/run_corpus_tests.py')
-rwxr-xr-xtesting/tools/run_corpus_tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 0c44cc6972..82c3d2aefe 100755
--- a/testing/tools/run_corpus_tests.py
+++ b/testing/tools/run_corpus_tests.py
@@ -74,7 +74,7 @@ def test_one_file_parallel(working_dir, pdfium_test_path, image_differ,
def handle_result(test_suppressor, input_filename, input_path, result,
surprises, failures):
- if test_suppressor.IsSuppressed(input_filename):
+ if test_suppressor.IsResultSuppressed(input_filename):
if result:
surprises.append(input_path)
else:
@@ -127,8 +127,9 @@ def main():
for input_filename in filename_list:
if input_file_re.match(input_filename):
input_path = os.path.join(source_dir, input_filename)
- if os.path.isfile(input_path):
- test_cases.append((input_filename, source_dir))
+ if not test_suppressor.IsExecutionSuppressed(input_path):
+ if os.path.isfile(input_path):
+ test_cases.append((input_filename, source_dir))
if options.num_workers > 1 and len(test_cases) > 1:
try: