support/testing: test_gstreamer1: raise tesseract-ocr timeout to 15s
PATCH 1/1 support/testing: test_gstreamer1: raise tesseract-ocr timeout to 15s
On my laptop (i5-8365U), running cross-tesseract-ocr in QEMU takes longer than the default timeout (5s), causing the test to fail:
# time tesseract frame10.png output Error in pixReadMemTiff: function not present Error in pixReadMem: tiff: no pix returned Error in pixaGenerateFontFromString: pix not made Error in bmfCreate: font pixa not made Estimating resolution as 157 real 0m 8.17s user 0m 5.36s sys 0m 2.79s
So extend the assertRunOk() timeout with ~2x that similar to how it is done for the gst-launch-1.0 pipeline.
--- support/testing/tests/package/test_gstreamer1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/testing/tests/package/test_gstreamer1.py +1 -1
@@ -75,7 +75,7 @@ class TestGstreamer1(infra.basetest.BRTest): # We extract the text from our last image. img_file = f"frame{num_frames}.png" cmd = f"tesseract {img_file} output" - self.assertRunOk(cmd) + self.assertRunOk(cmd, timeout=15) # We check we have our initial message. out, ret = self.emulator.run("cat output.txt")
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines · Peter Korsgaard
On my laptop (i5-8365U), running cross-tesseract-ocr in QEMU takes longer than the default timeout (5s), causing the test to fail:
# time tesseract frame10.png output Error in pixReadMemTiff: function not present Error in pixReadMem: tiff: no pix returned Error in pixaGenerateFontFromString: pix not made Error in bmfCreate: font pixa not made Estimating resolution as 157 real 0m 8.17s user 0m 5.36s sys 0m 2.79s
Quoted 4 lines
So extend the
assertRunOk()timeout with ~2x that similar to how it is done for the gst-launch-1.0 pipeline.Signed-off-by Peter Korsgaard <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 13 lines
On my laptop (i5-8365U), running cross-tesseract-ocr in QEMU takes longer than the default timeout (5s), causing the test to fail:
# time tesseract frame10.png output Error in pixReadMemTiff: function not present Error in pixReadMem: tiff: no pix returned Error in pixaGenerateFontFromString: pix not made Error in bmfCreate: font pixa not made Estimating resolution as 157 real 0m 8.17s user 0m 5.36s sys 0m 2.79s
Quoted 4 lines
So extend the
assertRunOk()timeout with ~2x that similar to how it is done for the gst-launch-1.0 pipeline.Signed-off-by Peter Korsgaard <[email protected]>
Applied to 2025.02.x & 2025.05.x. Thanks
Quoted 24 lines
--- support/testing/tests/package/test_gstreamer1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)support/testing/tests/package/test_gstreamer1.py +1
-1@@ -75,7 +75,7 @@ class TestGstreamer1(infra.basetest.BRTest): # We extract the text from our last image. img_file = f"frame{num_frames}.png" cmd = f"tesseract {img_file} output" - self.assertRunOk(cmd) + self.assertRunOk(cmd, timeout=15) # We check we have our initial message. out, ret = self.emulator.run("cat output.txt")Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot