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

Unified Diff: testing/tools/run_corpus_tests.py

Issue 1952823002: Copy the event definition file to the testing directory along with pdf (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Suppress them again Created 4 years, 7 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 | « DEPS ('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 41d3c12a3be73cd81addfde06ad7d8383735f80c..21ebd1968d09e0fe5d5d36e1ee71e11a89d7d3a5 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
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698