summaryrefslogtreecommitdiff
path: root/testing/tools
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-04 16:20:35 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-04 16:20:35 -0700
commitd7725bb53c7593c42579a28dd5947a8b8e13949f (patch)
treeca0efe734dd1de39057e7991d0f8d94757e54aa6 /testing/tools
parent55fa356c8ce72c597e75fc591fc67597b1c019d5 (diff)
downloadpdfium-d7725bb53c7593c42579a28dd5947a8b8e13949f.tar.xz
Copy the event definition file to the testing directory along with pdf
data_binding.pdf is much closer now that events are sent. It still diffs due to some bg color issues, not that the box is unchecked. Review-Url: https://codereview.chromium.org/1952823002
Diffstat (limited to 'testing/tools')
-rwxr-xr-xtesting/tools/run_corpus_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 41d3c12a3b..21ebd1968d 100755
--- a/testing/tools/run_corpus_tests.py
+++ b/testing/tools/run_corpus_tests.py
@@ -37,6 +37,11 @@ def test_one_file(input_filename, source_dir, working_dir,
os.remove(image)
shutil.copyfile(input_path, pdf_path)
+ input_event_path = os.path.splitext(input_path)[0] + ".evt"
+ output_event_path = os.path.splitext(pdf_path)[0] + ".evt"
+ if os.path.exists(input_event_path):
+ shutil.copyfile(input_event_path, output_event_path)
+
sys.stdout.flush()
# add Dr. Memory wrapper if exist
# remove .pdf suffix