Skip to contentSkip to conversation

dev-manual: fix testimage usage instructions

PATCH In review Trevor Gamblin 2 participants 2 messages Oct 3, 2023 – Oct 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: fix testimage usage instructions

The proper way to inherit the testimage class is now

IMAGE_CLASSES += "testimage"

so change lines with 'INHERIT += "testimage"' to match. This makes the dev-manual consistent with the migration guide, which already specifies that the old way causes an error.

---
 documentation/dev-manual/runtime-testing.rst   | 4 ++--
 documentation/dev-manual/upgrading-recipes.rst | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
documentation/dev-manual/runtime-testing.rst +2 -2
index c5c5653be..af3fe2c1d 100644
@@ -229,7 +229,7 @@ The final thing you need to do when setting :term:`TEST_TARGET` to
    statements in your ``local.conf`` file::
 
       IMAGE_FSTYPES += "tar.gz"
-      INHERIT += "testimage"
+      IMAGE_CLASSES += "testimage"
       TEST_TARGET = "SystemdbootTarget"
       TEST_TARGET_IP = "192.168.2.3"
 
@@ -335,7 +335,7 @@ You can start the tests automatically or manually:
    inherit the :ref:`ref-classes-testimage` class by editing your
    ``local.conf`` file::
 
-      INHERIT += "testimage"
+      IMAGE_CLASSES += "testimage"
 
    Next, use BitBake to run the tests::
 
documentation/dev-manual/upgrading-recipes.rst +1 -1
index 947ef138a..4fac78bdf 100644
@@ -117,7 +117,7 @@ The following steps describe how to set up the AUH utility:
       class, which is optional, you need to have the following set in
       your ``conf/local.conf`` file::
 
-         INHERIT += "testimage"
+         IMAGE_CLASSES += "testimage"
 
       .. note::
 
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Trevor

Quoted 41 lines · Trevor Gamblin

The proper way to inherit the testimage class is now

IMAGE_CLASSES += "testimage"

so change lines with 'INHERIT += "testimage"' to match. This makes the dev-manual consistent with the migration guide, which already specifies that the old way causes an error.

---
  documentation/dev-manual/runtime-testing.rst   | 4 ++--
  documentation/dev-manual/upgrading-recipes.rst | 2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)
documentation/dev-manual/runtime-testing.rst +2 -2
index c5c5653be..af3fe2c1d 100644
@@ -229,7 +229,7 @@ The final thing you need to do when setting :term:`TEST_TARGET` to
     statements in your ``local.conf`` file::
 
        IMAGE_FSTYPES += "tar.gz"
-      INHERIT += "testimage"
+      IMAGE_CLASSES += "testimage"
        TEST_TARGET = "SystemdbootTarget"
        TEST_TARGET_IP = "192.168.2.3"
 
@@ -335,7 +335,7 @@ You can start the tests automatically or manually:
     inherit the :ref:`ref-classes-testimage` class by editing your
     ``local.conf`` file::
 
-      INHERIT += "testimage"
+      IMAGE_CLASSES += "testimage"
 
     Next, use BitBake to run the tests::
 
documentation/dev-manual/upgrading-recipes.rst +0 -0
index 947ef138a..4fac78bdf 100644

documentation/dev-manual/upgrading-recipes.rst The following steps describe how to set up the AUH utility: · line 122

Quoted 7 lines
documentation/dev-manual/upgrading-recipes.rst +1 -1
@@ -117,7 +117,7 @@ The following steps describe how to set up the AUH utility:
        class, which is optional, you need to have the following set in
        your ``conf/local.conf`` file::
 
-         INHERIT += "testimage"
+         IMAGE_CLASSES += "testimage"
 
        .. note::

Many thanks for the update!

and merged into "master-next".

Cheers
Michael.

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