All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zk47T" <zizuzacker@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: ross.burton@arm.com, mathieu.dubois-briand@bootlin.com,
	Nguyen Minh Tien <zizuzacker@gmail.com>
Subject: [PATCH v3 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS
Date: Thu, 23 Apr 2026 17:04:05 +0700	[thread overview]
Message-ID: <20260423100405.25255-4-zizuzacker@gmail.com> (raw)
In-Reply-To: <20260423100405.25255-1-zizuzacker@gmail.com>

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'))
-- 
2.34.1



  parent reply	other threads:[~2026-04-23 11:15 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   ` [OE-core] " Mathieu Dubois-Briand
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       ` Zk47T [this message]
2026-04-23 10:09         ` [PATCH v3 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS 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=20260423100405.25255-4-zizuzacker@gmail.com \
    --to=zizuzacker@gmail.com \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@arm.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 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.