summaryrefslogtreecommitdiff
path: root/testing/tools/run_corpus_tests.py
diff options
context:
space:
mode:
authorBruce Dawson <brucedawson@google.com>2015-05-20 16:52:05 -0700
committerBruce Dawson <brucedawson@google.com>2015-05-20 16:52:05 -0700
commit79569e74ddddb12b3a76d211d826be2a3d87d0d0 (patch)
treed5c86e6717451d130a9e502a35703758dcfd4fcb /testing/tools/run_corpus_tests.py
parente9ccc9bc449846107f1c539e25677f4877ddf22f (diff)
downloadpdfium-79569e74ddddb12b3a76d211d826be2a3d87d0d0.tar.xz
Get test running scripts to detect and report common error.
testing/tools/run_corpus_tests.py assumes a debug build and will fail cryptically if only a release build is available. Arguably there shouldn't be a default because having one could lead to accidentally running a stale version, but that is probably too much of a change. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1150823003
Diffstat (limited to 'testing/tools/run_corpus_tests.py')
-rwxr-xr-xtesting/tools/run_corpus_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py
index 13376f7878..1876581e40 100755
--- a/testing/tools/run_corpus_tests.py
+++ b/testing/tools/run_corpus_tests.py
@@ -42,6 +42,10 @@ def main():
options, args = parser.parse_args()
finder = common.DirectoryFinder(options.build_dir)
pdfium_test_path = finder.ExecutablePath('pdfium_test')
+ if not os.path.exists(pdfium_test_path):
+ print "FAILURE: Can't find test executable '%s'" % pdfium_test_path
+ print "Use --build-dir to specify its location."
+ return 1
working_dir = finder.WorkingDir(os.path.join('testing', 'corpus'))
if not os.path.exists(working_dir):
os.makedirs(working_dir)