From b60bea0ee9063244068c07e1912d50ce086175ad Mon Sep 17 00:00:00 2001 From: Zach Welch Date: Thu, 26 May 2022 08:12:28 -0700 Subject: 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 Reviewed-by: Michael Opdenacker Reviewed-by: Quentin Schulz Signed-off-by: Richard Purdie --- documentation/test-manual/intro.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'documentation') 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: which include the fetchers. The tests are located in ``bitbake/lib/*/tests``. + Some of these tests run the ``bitbake`` command, so ``bitbake/bin`` + must be added to the ``PATH`` before running ``bitbake-selftest``. From within the BitBake repository, run the following:: + $ export PATH=$PWD/bin:$PATH + + After that, you can run the selftest script:: + $ bitbake-selftest The default output is quiet and just prints a summary of what was -- cgit v1.2.3-54-g00ecf