]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
ignore zbarimg error
authorBastian Dehn <hhaalo@arcor.de>
Sat, 5 Jul 2025 11:40:31 +0000 (13:40 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 5 Jul 2025 11:40:31 +0000 (13:40 +0200)
scanbasic.bats
scanbasic.sh

index 10873c0aeeb934c16b73f0456b61ef16ab18e5b1..6ffb3f0d93b6cc15c9fcd55dc0a33cd2942dc4b6 100755 (executable)
@@ -236,8 +236,8 @@ teardown() {
 
        run detectsplit "testfile.pdf"
 
-       assert_failure
-       assert_line --index 0 "❌ ERROR: could not read cut page"
+       assert_success
+       assert_line --index 0 "false"
 }
 
 @test "should success and false detectsplit zbarimg nothing find" {
index f0c640fb120afb4f5e39d1815875d0c2f3e9d9df..f0da35b59081b219cff3db0790c4f0c9c22db7c9 100644 (file)
@@ -142,9 +142,7 @@ detectsplit()
                || errlog "missing pdf" \
                || return $?
 
-       trenn=$(zbarimg --raw --quiet $pdf) \
-               || errlog "could not read cut page" \
-               || return $?
+       trenn=$(zbarimg --raw --quiet $pdf)
 
        [ "$trenn" == "Trennblatt" ] \
                && echo "true" \