From: ChenQi <Qi.Chen@windriver.com>
To: "Marko, Peter" <Peter.Marko@siemens.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core][PATCH 2/2] core-image-ptest.bb: use ?= for PTEST_EXPECT_FAILURE
Date: Fri, 5 Dec 2025 16:31:02 +0800 [thread overview]
Message-ID: <76518c9a-4662-419f-a3a3-e03e183b4438@windriver.com> (raw)
In-Reply-To: <AS1PR10MB56974B8A04684033C2275119FDA7A@AS1PR10MB5697.EURPRD10.PROD.OUTLOOK.COM>
On 12/5/25 16:26, Marko, Peter wrote:
>
>> -----Original Message-----
>> From: openembedded-core@lists.openembedded.org <openembedded-
>> core@lists.openembedded.org> On Behalf Of Chen Qi via
>> lists.openembedded.org
>> Sent: Friday, December 5, 2025 9:10
>> To: openembedded-core@lists.openembedded.org
>> Subject: [OE-core][PATCH 2/2] core-image-ptest.bb: use ?= for
>> PTEST_EXPECT_FAILURE
>>
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> We need to allow users to easily override this value in local.conf.
>> This has the benefit that 'bitbake core-image-ptest-xxx:do_testimage'
>> fails when expected.
>>
>> As an example, I used 'bitbake core-image-ptest-util-linux:do_testimage'.
>> It succeeded with warning message. I didn't notice the warning message.
>> I saw the command succeeded and I tought util-linux ptest is OK. But
>> in actual fact, the ptest failed. It's the PTEST_EXPECT_FAILURE setting
>> in this core-image-ptest.bb that is not giving me error.
>>
>> With this change, I can put PTEST_EXPECT_FAILURE = "1" in my local.conf,
> This comment should be probably "0".
You're right. I'll send out V2. Thanks for spotting it.
Regards,
Qi
>
>> and I can easily see if 'core-image-ptest-xxx:do_testimage' succeeds or
>> not.
>>
>> The PTEST_EXPECT_FAILURE change should result in testdata regenerated
>> because ptest.py test case's behavior is affected by it.
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> meta/recipes-core/images/core-image-ptest.bb | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> 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"):
>> --
>> 2.43.0
prev parent reply other threads:[~2025-12-05 8:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 8:10 [OE-core][PATCH 1/2] oeqa/runtime/cases/ptest.py: use to_boolean for PTEST_EXPECT_FAILURE Qi.Chen
2025-12-05 8:10 ` [OE-core][PATCH 2/2] core-image-ptest.bb: use ?= " Qi.Chen
2025-12-05 8:26 ` Marko, Peter
2025-12-05 8:31 ` ChenQi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76518c9a-4662-419f-a3a3-e03e183b4438@windriver.com \
--to=qi.chen@windriver.com \
--cc=Peter.Marko@siemens.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.