Re: [yocto-patches] [wic][PATCH v4 0/6] tests: standalone test-suite framework plus the first unit test
Paul Barker <[email protected]> Wed, 08 Jul 2026 15:27:59 +0100
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2026-07-06 at 18:28 -0400, Trevor Woerner via lists.yoctoproject.org wrote: > wic has no test mechanism of its own; it relies on the oe-selftest from > oe-core, which needs a full bitbake build to exercise even pure-Python > logic. This series starts a small standalone suite that runs from a > plain checkout, framework first, then the first fix, and its test. > > - the suite skeleton (pyproject test extra, pytest config, layout, > a justfile command runner, and a README Testing section); > - a conftest that imports wic once up front (stopping the session with > a clear message if that fails) and prints a session banner; > - optional coverage and ruff linting, each exposed as just recipes; > - a one-line fix to wic.bb.utils (import errno) so mkdirhier's OSError > handler works, as its own commit; > - unit tests for mkdirhier() that pin its behaviour and catch that > bug. > > The suite is green at every commit and the test tree is ruff-clean. All LGTM now! Reviewed-by: Paul Barker <[email protected]> Best regards, -- Paul Barker
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- iIcEABYKAC8WIQSzjPXf5Y1BDWhU2iCrY1Tsnbr0bgUCak5ebxEccGF1bEBwYmFy a2VyLmRldgAKCRCrY1Tsnbr0bhtbAQDU47J5fmubqOyW4Kw2Q0/w7n47TBgWCXL2 5QItEdUbrwEAwt9moPKjm7eRv+fCK5AnFxzfIfzbF3gbjsAnVZ3EFwI= =Sts+ -----END PGP SIGNATURE-----