summaryrefslogtreecommitdiff
path: root/testing/tools/run_corpus_tests.py
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-03-26 16:29:05 -0700
committerTom Sepez <tsepez@chromium.org>2015-03-26 16:29:05 -0700
commit84e50d58496622af351cd27da51479059736923d (patch)
tree1358a04b895e9692b4a3a2d65522b15ffcf6ca64 /testing/tools/run_corpus_tests.py
parent30506b41ea88cf6743c314743ce477e8186a3945 (diff)
downloadpdfium-84e50d58496622af351cd27da51479059736923d.tar.xz
Replace linux-specific code in test scripts.
Now that there's a win bot, this needs to be more careful. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1036073002
Diffstat (limited to 'testing/tools/run_corpus_tests.py')
-rwxr-xr-xtesting/tools/run_corpus_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 2f5c413f61..22f9eefe14 100755
--- a/testing/tools/run_corpus_tests.py
+++ b/testing/tools/run_corpus_tests.py
@@ -7,6 +7,7 @@ import optparse
import os
import re
import subprocess
+import shutil
import sys
# Nomenclature:
@@ -30,8 +31,8 @@ def test_one_file(input_filename, source_dir, working_dir,
expected_path_template = os.path.join(source_dir,
input_root + '_expected.pdf.%d.png')
try:
+ shutil.copyfile(input_path, pdf_path)
sys.stdout.flush()
- subprocess.check_call(['cp', input_path, pdf_path])
subprocess.check_call([pdfium_test_path, '--png', pdf_path])
i = 0;
while True: