From 9b82cafe2a2c709462c4860f192b0cd23de6ced1 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 5 Jul 2025 13:14:19 +0200 Subject: [PATCH] add info for add ocr --- scanbasic.bats | 4 +++- scanbasic.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scanbasic.bats b/scanbasic.bats index b2c6dec..d9f6a76 100755 --- a/scanbasic.bats +++ b/scanbasic.bats @@ -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" { diff --git a/scanbasic.sh b/scanbasic.sh index a6f0086..4404163 100644 --- a/scanbasic.sh +++ b/scanbasic.sh @@ -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 $? -- 2.47.3