diff mbox series

[meta-oe,3/3] tbb: Give each ptest a timeout

Message ID 20261204063821.2452951-4-khem.raj@oss.qualcomm.com
State New
Headers show
Series meta-oe: ptest and packaging fixes | expand

Commit Message

Khem Raj Dec. 4, 2026, 6:38 a.m. UTC
run-ptest prints one line per finished ctest test, so a single hung test
leaves ptest-runner without output until its 450 s timeout. ptest-runner
then kills the whole suite and every remaining result is lost. This
happened with test_resumable_tasks on qemux86-64: 28 tests had passed,
and the other 113 never ran.

Pass --timeout 300 to ctest so that a hung test is reported as a single
FAIL and the rest of the suite still runs. The whole suite normally
finishes in about 380 s on qemux86-64.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-support/tbb/files/run-ptest | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/tbb/files/run-ptest b/meta-oe/recipes-support/tbb/files/run-ptest
index ef14dab437..9db7dbb542 100755
--- a/meta-oe/recipes-support/tbb/files/run-ptest
+++ b/meta-oe/recipes-support/tbb/files/run-ptest
@@ -4,7 +4,9 @@ 
 # anything other than Passed/Skipped/Disabled (Failed, Timeout, Exception, Not Run) is a FAIL
 # test_scheduler_mix hangs intermittently on every architecture
 # https://github.com/uxlfoundation/oneTBB/issues/1281
-ctest -E '^test_scheduler_mix$' | awk '/Test +#[0-9]+:/ {
+# --timeout makes any other hung test a single FAIL; without it ptest-runner
+# kills the whole suite after 450s without output
+ctest --timeout 300 -E '^test_scheduler_mix$' | awk '/Test +#[0-9]+:/ {
     if ($0 ~ /Passed/) res = "PASS"
     else if ($0 ~ /Skipped|Disabled/) res = "SKIP"
     else res = "FAIL"