diff options
| author | Zach Welch <zach@mandolincreek.net> | 2022-05-26 08:12:28 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-28 10:46:00 +0100 |
| commit | b60bea0ee9063244068c07e1912d50ce086175ad (patch) | |
| tree | 3f46c0435a3c496009e39fb26af1abde1408c39e /documentation/test-manual | |
| parent | 4624c2ae618b2c847720b60e99da5146062fb9f3 (diff) | |
| download | poky-b60bea0ee9063244068c07e1912d50ce086175ad.tar.gz | |
test-manual/intro: bitbake-selftest needs bitbake
Without adding bitbake/bin to the PATH, some tests will fail when
they cannot find the main bitbake script.
(From yocto-docs rev: 1bbeb83bbff71a670ced81146732f04a947473b5)
Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/test-manual')
| -rw-r--r-- | documentation/test-manual/intro.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/documentation/test-manual/intro.rst b/documentation/test-manual/intro.rst index c445e28a7e..12324e592c 100644 --- a/documentation/test-manual/intro.rst +++ b/documentation/test-manual/intro.rst | |||
| @@ -175,8 +175,14 @@ Tests map into the codebase as follows: | |||
| 175 | which include the fetchers. The tests are located in | 175 | which include the fetchers. The tests are located in |
| 176 | ``bitbake/lib/*/tests``. | 176 | ``bitbake/lib/*/tests``. |
| 177 | 177 | ||
| 178 | Some of these tests run the ``bitbake`` command, so ``bitbake/bin`` | ||
| 179 | must be added to the ``PATH`` before running ``bitbake-selftest``. | ||
| 178 | From within the BitBake repository, run the following:: | 180 | From within the BitBake repository, run the following:: |
| 179 | 181 | ||
| 182 | $ export PATH=$PWD/bin:$PATH | ||
| 183 | |||
| 184 | After that, you can run the selftest script:: | ||
| 185 | |||
| 180 | $ bitbake-selftest | 186 | $ bitbake-selftest |
| 181 | 187 | ||
| 182 | The default output is quiet and just prints a summary of what was | 188 | The default output is quiet and just prints a summary of what was |
