Skip to content

Fix bitbake-selftest failures

Mark Hatle bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/bb/tests/parse.py: Test case was changing chdirlib/bb/tests/parse.py+4 -00 replies
2/3lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) pathlib/layerindexlib/tests/cooker.py+1 -11 reply
3/3lib/layerindexlib/tests/restapi.py: Fix test cases when BB_SKIP_NETTETS=yeslib/layerindexlib/tests/restapi.py+87 -770 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix bitbake-selftest failures

The original purpose of this work is to fix the Yocto Project bug 12928.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=12928

During that work it was noticed that parse.py was running chdir without restoring the original path. Also the layerindexlib cooker test was using __file__ without fully sanitizing it, so due to the prior issue it could fail to load the test-case data.

The patch set is availabe on bitbake-contrib on the mgh/12928 branch.

Mark Hatle (3):
lib/bb/tests/parse.py: Test case was changing chdir lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute
(real) path
lib/layerindexlib/tests/restapi.py: Fix test cases when
BB_SKIP_NETTETS=yes

 lib/bb/tests/parse.py              |   4 +
 lib/layerindexlib/tests/cooker.py  |   2 +-
 lib/layerindexlib/tests/restapi.py | 164 ++++++++++++++++++++-----------------
 3 files changed, 92 insertions(+), 78 deletions(-)
Signature · 1 line
1.8.3.1