]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
add info for add ocr
authorBastian Dehn <hhaalo@arcor.de>
Sat, 5 Jul 2025 11:14:19 +0000 (13:14 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 5 Jul 2025 11:14:19 +0000 (13:14 +0200)
scanbasic.bats
scanbasic.sh

index b2c6dec015edd21a1ea166dd98f1313c03b52fdc..d9f6a761a04dcc59a0ca103a1133c2c67c63a6ab 100755 (executable)
@@ -135,13 +135,15 @@ teardown() {
        run addocr "testfile"
 
        assert_failure
-       assert_line --index 0 "❌ ERROR: could not add ocr on testfile"
+       assert_line --index 0 "ℹ️  INFO: adding ocr on file testfile..."
+       assert_line --index 1 "❌ ERROR: could not add ocr on testfile"
 }
 
 @test "should success addocr" {
        run addocr "testfile"
 
        assert_success
+       assert_line --index 0 "ℹ️  INFO: adding ocr on file testfile..."
 }
 
 @test "should failure createonepdf missing output parameter" {
index a6f008675e24d0ea4c5c4f45756515ca7bf08bb7..4404163174607fb8d8f1483159340ff7822e17b8 100644 (file)
@@ -39,7 +39,8 @@ addocr()
                || errlog "missing input" \
                || return $?
 
-       ocrmypdf -l deu $input $output 2>&1 \
+       echo "ℹ️  INFO: adding ocr on file $input..."
+       ocrmypdf -l deu $input $output > /dev/null \
                || errlog "could not add ocr on $input" \
                || return $?