From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <zizuzacker@gmail.com>, <openembedded-core@lists.openembedded.org>
Cc: <Ross.Burton@arm.com>
Subject: Re: [OE-core] [PATCH v2 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS
Date: Thu, 23 Apr 2026 08:44:31 +0200 [thread overview]
Message-ID: <DI0BXNU5HAFH.348GL3QVI6JL3@bootlin.com> (raw)
In-Reply-To: <20260420163940.182918-4-zizuzacker@gmail.com>
On Mon Apr 20, 2026 at 6:39 PM CEST, Zk47T via lists.openembedded.org wrote:
> Add a test case to verify that a recipe inheriting useradd with only
> USERADD_DEPENDS set (and no USERADD_PACKAGES) parses and builds
> successfully. This validates the fix in useradd.bbclass for
> [YOCTO #15863].
>
> Signed-off-by: Nguyen Minh Tien <zizuzacker@gmail.com>
> ---
> meta/lib/oeqa/selftest/cases/usergrouptests.py | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/lib/oeqa/selftest/cases/usergrouptests.py b/meta/lib/oeqa/selftest/cases/usergrouptests.py
> index 3c59b0f290..69025a59aa 100644
> --- a/meta/lib/oeqa/selftest/cases/usergrouptests.py
> +++ b/meta/lib/oeqa/selftest/cases/usergrouptests.py
> @@ -55,3 +55,9 @@ class UserGroupTests(OESelftestTestCase):
> self.write_config("USERADD_GID_TABLES += \"files/static-group\"")
> self.logger.info("Rebuild with other staticids")
> self.assertTrue(bitbake(' core-image-minimal'))
> +
> + def test_useradd_depends_only(self):
> + # Test that a recipe inheriting useradd with only USERADD_DEPENDS
> + # (and no USERADD_PACKAGES) parses and builds successfully. [YOCTO #15863]
> + self.logger.info("Building usegroup-deponly to test USERADD_DEPENDS only")
> + self.assertTrue(bitbake(' usegroup-deponly'))
Hi,
Thanks for adding tests.
Yet, it looks like this test is always failing. I had the issue both on
the autobuilder and locally:
2026-04-22 13:30:16,318 - oe-selftest - INFO - usergrouptests.UserGroupTests.test_useradd_depends_only (subunit.RemotedTestCase)
2026-04-22 13:30:16,332 - oe-selftest - INFO - ... FAIL
...
ERROR: usegroup-deponly-1.0-r0 do_unpack: S should be set relative to UNPACKDIR, e.g. replace WORKDIR with UNPACKDIR in "S = ${WORKDIR}/sources"
ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-409425/tmp/work/all-poky-linux/usegroup-deponly/1.0/temp/log.do_unpack.2060861
NOTE: recipe usegroup-deponly-1.0-r0: task do_unpack: Failed
ERROR: Task (/srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-409425/meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb:do_unpack) failed with exit code '1'
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3719
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3606
So I believe the issue does not code from the test, but from the recipe
itself.
Can you have a look at the issue?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-04-23 6:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 16:39 [PATCH v2 0/3] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set Zk47T
2026-04-20 16:39 ` [PATCH v2 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
2026-04-20 16:39 ` [PATCH v2 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T
2026-04-20 16:39 ` [PATCH v2 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Zk47T
2026-04-23 6:44 ` Mathieu Dubois-Briand [this message]
2026-04-23 10:04 ` [PATCH v3 0/3] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set Zk47T
2026-04-23 10:04 ` [PATCH v3 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
2026-04-23 10:04 ` [PATCH v3 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T
2026-04-23 10:04 ` [PATCH v3 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Zk47T
2026-04-23 10:09 ` Zk47T
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=DI0BXNU5HAFH.348GL3QVI6JL3@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=Ross.Burton@arm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=zizuzacker@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox