action #122047
coordination #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
0%
Description
Related issues
History
#1
Updated by osukup 3 months ago
- Copied from action #121357: [easy][beginner] Ensure 100% test coverage of t/ in os-autoinst size:M added
#2
Updated by jbaier_cz 3 months 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.
#3
Updated by osukup 3 months 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)
#4
Updated by jbaier_cz 3 months 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