poky/meta/lib/oeqa
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
..
buildperf buildperf/base.py: skip reduced_proc_pressure directory 2022-06-30 23:38:01 +01:00
controllers lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
core resulttool: Use single space indentation in json output 2024-11-23 14:44:54 +00:00
files oeqa: add "maturin develop" SDK test case 2023-12-17 19:07:22 +00:00
manual oeqa/manual: remove obsolete CROPS and Eclipse manually testing scripts 2024-05-28 09:38:24 +01:00
runtime oeqa: Build cpio with C17 std 2025-03-24 17:29:16 +00:00
sdk oeqa: Build cpio with C17 std 2025-03-24 17:29:16 +00:00
sdkext oeqa/sdkext/devtool: replace use of librdfa 2024-05-21 12:08:04 +01:00
selftest oeqa/sstatetests: Improve/fix sstate creation tests 2025-07-04 07:50:16 -07:00
utils qemurunner: Fix a bug with fork/exit handling 2025-03-03 18:01:30 +00:00
oetest.py meta/lib/oeqa: python 3.12 regex 2024-02-13 13:51:41 +00:00
runexported.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
targetcontrol.py oeqa: support passing custom boot patterns to runqemu 2024-10-11 15:57:44 +01:00