| Message ID | 20251205083202.330982-2-Qi.Chen@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | [V2,1/2] oeqa/runtime/cases/ptest.py: use to_boolean for PTEST_EXPECT_FAILURE | expand |
On Fri, 5 Dec 2025 at 09:32, Chen Qi via lists.openembedded.org <Qi.Chen=windriver.com@lists.openembedded.org> wrote: > # Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places > -PTEST_EXPECT_FAILURE = "1" > +PTEST_EXPECT_FAILURE ?= "1" I'd say let's rather drop this assignment and the comment. This was the case years ago when ptests were indeed flaky, but they've come a long way since. And even though because of this assignment ptest fails become AB warnings, de facto such warnings are still treated as fails that block the patch that caused them. You'd also need to tweak the regexp in yocto-autobuilder2/steps/observer.py that Mathieu has recently introduced. Alex
On Fri, 5 Dec 2025 at 10:43, Alexander Kanavin via lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org> wrote: > You'd also need to tweak the regexp in > yocto-autobuilder2/steps/observer.py that Mathieu has recently > introduced. Actually this is not needed. The warning the regexp matches on is still printed, the error is a separate print. Alex
diff --git a/meta/recipes-core/images/core-image-ptest.bb b/meta/recipes-core/images/core-image-ptest.bb index 017f05f81b..b554964d20 100644 --- a/meta/recipes-core/images/core-image-ptest.bb +++ b/meta/recipes-core/images/core-image-ptest.bb @@ -42,7 +42,8 @@ QB_MEM:virtclass-mcextend-tcl = "-m 5100" TEST_SUITES = "ping ssh parselogs ptest" # Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places -PTEST_EXPECT_FAILURE = "1" +PTEST_EXPECT_FAILURE ?= "1" +write_image_test_data[vardeps] += "PTEST_EXPECT_FAILURE" python () { if not d.getVar("MCNAME"):