diff options
author | Bruce Dawson <brucedawson@google.com> | 2015-06-01 14:53:02 -0700 |
---|---|---|
committer | Bruce Dawson <brucedawson@google.com> | 2015-06-01 14:53:02 -0700 |
commit | 56ba4292f1454f259b52a68dd962cc2d8c2027c8 (patch) | |
tree | 14e7737ea11ba16dfa846cf38e245d19c8f082f6 /testing/tools/run_pixel_tests.py | |
parent | c2dfffbcf46e32d252c22c44233a16dee13052ab (diff) | |
download | pdfium-56ba4292f1454f259b52a68dd962cc2d8c2027c8.tar.xz |
Get test running scripts to detect and report common error, XFA.
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.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1150823003
Review URL: https://codereview.chromium.org/1158883005
Diffstat (limited to 'testing/tools/run_pixel_tests.py')
-rwxr-xr-x | testing/tools/run_pixel_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/tools/run_pixel_tests.py b/testing/tools/run_pixel_tests.py index 1fec0ddcb1..168846265b 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) |