Index: testing/tools/run_corpus_tests.py |
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py |
index 13376f78780ea82d0434a173bbdcbe015e0461ee..1876581e4069e4332a4564eff9fe29f3658de1b6 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) |