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" {
|| 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 $?