Index: testing/tools/run_pixel_tests.py |
diff --git a/testing/tools/run_pixel_tests.py b/testing/tools/run_pixel_tests.py |
index 1fec0ddcb13dbeba5f7cd8ce065c8e1412913be7..168846265bd9c699e7e8ce6c5459e3a94d6e66a6 100755 |
--- a/testing/tools/run_pixel_tests.py |
+++ b/testing/tools/run_pixel_tests.py |
@@ -46,6 +46,10 @@ def main(): |
fixup_path = finder.ScriptPath('fixup_pdf_template.py') |
source_dir = finder.TestingDir(os.path.join('resources', 'pixel')) |
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', 'pixel')) |
if not os.path.exists(working_dir): |
os.makedirs(working_dir) |