From 27da3cbe40ec8a64c65407356474d24f48dceef5 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 7 Aug 2025 12:07:09 +0200 Subject: [PATCH] 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. Signed-off-by: Peter Korsgaard Signed-off-by: Julien Olivain (cherry picked from commit c897f16a98644c1eb4883cdf3cc2ce38dcff7e73) Signed-off-by: Thomas Perale --- support/testing/tests/package/test_gstreamer1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/testing/tests/package/test_gstreamer1.py b/support/testing/tests/package/test_gstreamer1.py index ff0302a8a6..82829dab98 100644 --- a/support/testing/tests/package/test_gstreamer1.py +++ b/support/testing/tests/package/test_gstreamer1.py @@ -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")