action #122047
closedcoordination #109668: [saga][epic] Stable and updated non-qemu backends for SLE validation
coordination #109740: [epic] Stable os-autoinst unit tests with good coverage
[tools] tesseract ocr test fails
Description
Updated by osukup about 2 years ago
- Copied from action #121357: [easy][beginner] Ensure 100% test coverage of t/ in os-autoinst size:M added
Updated by jbaier_cz about 2 years ago
It might be related to https://github.com/os-autoinst/os-autoinst/pull/1825 maybe? In that case, the fix might be just a simple extension of https://github.com/os-autoinst/os-autoinst/pull/1823.
Updated by osukup about 2 years ago
there is also another problem:
: "tesseract" unexpectedly returned exit value 1 at /opt/ppmclibs/blib/lib/tinycv.pm line 113.
631
7: at /opt/ocr.pm line 20
632
7: # Tests were run but no plan was declared and done_testing() was not seen.
633
7: # Looks like your test exited with 1 just after 2.
634
7: [11:10:03] ./t/02-test_ocr.t ..........................
635
7: Dubious, test returned 1 (wstat 256, 0x100)
and same problem in OBS:
[ 128s] 3: "tesseract" unexpectedly returned exit value 1 at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1671105276.b860e7f/ppmclibs/blib/lib/tinycv.pm line 113.
[ 128s] 3: at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1671105276.b860e7f/ocr.pm line 20
[ 128s] 3: ok 2 - no (unexpected) warnings (via END block)
[ 128s] 3: # Tests were run but no plan was declared and done_testing() was not seen.
[ 128s] 3: # Looks like your test exited with 1 just after 2.
[ 128s] 3: Dubious, test returned 1 (wstat 256, 0x100)
Updated by jbaier_cz about 2 years ago
For that, the cause might be in https://github.com/os-autoinst/os-autoinst/blob/master/ocr.pm#L20 because of the use autodie
. If the exit value 1 from tesseract is expected or not is another question. The official documentation is not very helpful, there is a similar issue (although for a newer version) with the same question: https://github.com/tesseract-ocr/tesseract/issues/3675#issuecomment-990947190
Updated by osukup about 2 years ago
- Status changed from New to Resolved
- Assignee set to osukup
cause of problem was missing tesseract trained data, -> found after removing autodie
from ocr.pm