From aac5b6de3b832094baa847430b9c476bcd81e9b1 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 17 Feb 2018 00:12:03 -0800 Subject: [PATCH] Update autobrew script to match final changes --- .travis/autobrew.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis/autobrew.py b/.travis/autobrew.py index 2db85353..613de199 100644 --- a/.travis/autobrew.py +++ b/.travis/autobrew.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# © 2016-7 James R. Barlow: github.com/jbarlow83 +# © 2017-18 James R. Barlow: github.com/jbarlow83 from string import Template from subprocess import run, PIPE @@ -55,8 +55,9 @@ ${resources} # Since we use Python 3, we require a UTF-8 locale ENV["LC_ALL"] = "en_US.UTF-8" - # Use ocrmypdf -f to rasterize the PDF to image before doing OCR - system "#{bin}/ocrmypdf", "-f", "-q", "--deskew", test_fixtures("test.pdf"), testpath/"ocr.pdf" + system "#{bin}/ocrmypdf", "-f", "-q", "--deskew", + test_fixtures("test.pdf"), "ocr.pdf" + assert_predicate testpath/"ocr.pdf", :exist? end end """)