From: Ricardo Ungerer <ungerer.ricardo@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Ricardo Ungerer <ungerer.ricardo@gmail.com>
Subject: [PATCH 3/3] yocto-check-layer: Add docstring to test_readme method
Date: Tue, 20 Jan 2026 19:47:22 +0000 [thread overview]
Message-ID: <20260120194722.142355-4-ungerer.ricardo@gmail.com> (raw)
In-Reply-To: <20260120194722.142355-1-ungerer.ricardo@gmail.com>
Signed-off-by: Ricardo Ungerer <ungerer.ricardo@gmail.com>
---
scripts/lib/checklayer/cases/common.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py
index 9ea7592ba6..d20559e163 100644
--- a/scripts/lib/checklayer/cases/common.py
+++ b/scripts/lib/checklayer/cases/common.py
@@ -12,6 +12,16 @@ from checklayer.case import OECheckLayerTestCase
class CommonCheckLayer(OECheckLayerTestCase):
def test_readme(self):
+ """
+ Test that the layer contains a valid README file and that is meets
+ the following criteria:
+ 1. A README file exists in the layer's root directory (case-insensitive)
+ 2. The README file is not empty
+ 3. The README contains maintainer information (checks for the word "maintainer")
+ 4. The README contains patching instructions (checks for the word "patch")
+ 5. The README contains at least one email address
+ If the README references another README file, steps 3, 4, and 5 are skipped.
+ """
if self.tc.layer['type'] == LayerType.CORE:
raise unittest.SkipTest("Core layer's README is top level")
--
2.43.0
next prev parent reply other threads:[~2026-01-20 19:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-20 19:47 [PATCH 0/3] Improve yocto-check-layer test_readme method Ricardo Ungerer
2026-01-20 19:47 ` [PATCH 1/3] yocto-check-layer: Add messages in test_readme assertions Ricardo Ungerer
2026-01-20 19:47 ` [PATCH 2/3] yocto-check-layer: Fix README email check Ricardo Ungerer
2026-01-20 19:47 ` Ricardo Ungerer [this message]
2026-01-20 20:00 ` Patchtest results for [PATCH 3/3] yocto-check-layer: Add docstring to test_readme method patchtest
2026-01-21 9:25 ` [OE-core] [PATCH 0/3] Improve yocto-check-layer " Quentin Schulz
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=20260120194722.142355-4-ungerer.ricardo@gmail.com \
--to=ungerer.ricardo@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox