| Message ID | 20251002100929.1054540-4-alex.kanavin@gmail.com |
|---|---|
| State | Accepted, archived |
| Commit | e974d42eb5229f755e14b46a00ad06b23b53e143 |
| Headers | show |
| Series | [1/7] bitbake-setup: suggest "." instead of "source" | expand |
diff --git a/lib/bb/tests/setup.py b/lib/bb/tests/setup.py index c77e750db..2076613d9 100644 --- a/lib/bb/tests/setup.py +++ b/lib/bb/tests/setup.py @@ -181,6 +181,11 @@ print("BBPATH is {{}}".format(os.environ["BBPATH"])) def test_setup(self): + # unset BBPATH to ensure tests run in isolation from the existing bitbake environment + import os + if 'BBPATH' in os.environ: + del os.environ['BBPATH'] + # check that no arguments works self.runbbsetup("")