poky/meta/lib
Richard Purdie 5230e088bd oeqa/sstatetests: Improve/fix sstate creation tests
There are multiple problems with the sstate creation tests. They currently both execute
twice, once to check one set of files, then another. We can do this together in one
test which makes the code easier to follow.

The common test function also has parameters which were always the same value, so
those can be simplified.

We can use the umask context manager from bb.utils to simplfy the umask code.

The badperms test was actually broken, it was detecting bad permissions, then
ignoring them. This patch fixes that regression too and allows the check to
operate (relying on a separate fix to sstate umask handling).

The result should be an easier to understand couple of test cases which should
also function correctly and be more reliable.

(From OE-Core rev: 4951d08046f66e905e6ab4bdd7af347c7ed14c64)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b9263040013199c5cb480125d5ca349f5d6dc55)
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-07-04 07:50:16 -07:00
..
bbconfigbuild bbconfigbuild/configfragments.py: set BBPATH in standalone datastore 2025-01-09 16:59:23 +00:00
bblayers bblayers/machines: add bitbake-layers command to list machines 2024-08-09 22:33:38 +01:00
oe patch.py: set commituser and commitemail for addNote 2025-05-14 08:33:40 -07:00
oeqa oeqa/sstatetests: Improve/fix sstate creation tests 2025-07-04 07:50:16 -07:00
patchtest patchtest/README.md: fix markdown style issues 2025-02-05 12:49:56 +00:00