@@ -344,10 +344,10 @@ directly to a Python module. Each test module may contain a number of
individual tests. Tests are usually grouped together by the area tested
(e.g tests for systemd reside in ``meta/lib/oeqa/runtime/cases/systemd.py``).
-You can add tests to any layer provided you place them in the proper
-area and you extend :term:`BBPATH` in
-the :ref:`structure-build-conf-local.conf` file as normal. Be sure that tests reside in
-``layer/lib/oeqa/runtime/cases``.
+You can add tests to any layer provided you place them in
+``<layer>/lib/oeqa/runtime/cases``. The :ref:`ref-classes-testimage` class
+iterates through the :term:`BBLAYERS` variable and tries to find this
+directory for each layer.
.. note::
@@ -449,9 +449,8 @@ Writing New Tests
As mentioned previously, all new test files need to be in the proper
place for the build system to find them. New tests for additional
functionality outside of the core should be added to the layer that adds
-the functionality, in ``layer/lib/oeqa/runtime/cases`` (as long as
-:term:`BBPATH` is extended in the
-layer's ``layer.conf`` file as normal). Just remember the following:
+the functionality, in ``layer/lib/oeqa/runtime/cases``. Just remember the
+following:
- Filenames need to map directly to test (module) names.
The statements used to say the testimage was looking for tests with BBPATH: this is wrong. In testimage.bbclass:get_runtime_paths(), the code iterates directly with BBLAYERS variable. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/test-manual/runtime-testing.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)