Skip to contentSkip to conversation

contributor-guide: clarify patchtest usage

PATCH Applied Trevor Gamblin 2 participants 2 messages Oct 17, 2023 – Oct 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 contributor-guide: clarify patchtest usage

- Make it clear that patchtest only supports openembedded-core for now
- Add a short list of instructions for installing Python module dependencies on the host
- Add a step to add meta-selftest with bitbake layers so that all tests can run

---
 .../contributor-guide/submit-changes.rst         | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
documentation/contributor-guide/submit-changes.rst +11 -5
index 8a300c366..f93c87ca3 100644
@@ -282,12 +282,18 @@ Here is the general procedure on how to create patches to be sent through email:
 Validating Patches with Patchtest
 =================================
 
-``patchtest`` is available in ``openembedded-core`` as a tool for making sure
-that your patches are well-formatted and contain important info for
+``patchtest`` is available in ``openembedded-core`` as a tool for making
+sure that your patches are well-formatted and contain important info for
 maintenance purposes, such as ``Signed-off-by`` and ``Upstream-Status``
-tags. Once you have generated the patch files and run ``source
-oe-init-build-env`` to initialize your workspace, you can run ``patchtest``
-like so::
+tags. Currently, it only supports testing patches for
+``openembedded-core`` branches. To setup, perform the following::
+
+#. ``pip install -r meta/lib/patchtest/requirements.txt``
+#. ``source oe-init-build-env``
+#. ``bitbake-layers add-layer ../meta-selftest``
+
+Once these steps are complete and you have generated your patch files,
+you can run ``patchtest`` like so::
 
     patchtest --patch <patch_name>
 
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1 Applied
#1 lore raw

Hi Trevor

Quoted 23 lines · Trevor Gamblin

- Make it clear that patchtest only supports openembedded-core for now
- Add a short list of instructions for installing Python module dependencies on the host
- Add a step to add meta-selftest with bitbake layers so that all tests can run

---
  .../contributor-guide/submit-changes.rst         | 16 +++++++++++-----
  1 file changed, 11 insertions(+), 5 deletions(-)
documentation/contributor-guide/submit-changes.rst +2 -2
index 8a300c366..f93c87ca3 100644
@@ -282,12 +282,18 @@ Here is the general procedure on how to create patches to be sent through email:
  Validating Patches with Patchtest
  =================================
 
-``patchtest`` is available in ``openembedded-core`` as a tool for making sure
-that your patches are well-formatted and contain important info for
+``patchtest`` is available in ``openembedded-core`` as a tool for making
+sure that your patches are well-formatted and contain important info for

documentation/contributor-guide/submit-changes.rst Here is the general procedure on how to create patches to be sent through email: · line 293

Quoted 10 lines
documentation/contributor-guide/submit-changes.rst +6 -3
  maintenance purposes, such as ``Signed-off-by`` and ``Upstream-Status``
-tags. Once you have generated the patch files and run ``source
-oe-init-build-env`` to initialize your workspace, you can run ``patchtest``
-like so::
+tags. Currently, it only supports testing patches for
+``openembedded-core`` branches. To setup, perform the following::
+
+#. ``pip install -r meta/lib/patchtest/requirements.txt``
+#. ``source oe-init-build-env``
+#. ``bitbake-layers add-layer ../meta-selftest``

Thanks for the update. I just removed the "#." characters which made the output look weird.

Merged into "master-next".

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com