Re: [PATCH v13 4/4] oeqa/selftest: Add tests for source download enrichment

Richard Purdie
2026-03-24T10:26:15Z

On Mon, 2026-03-23 at 22:07 +0100, Stefano Tondo wrote:
> Add comprehensive tests for the new source download SPDX features:
>
> test_download_location_defensive_handling:
>   Verify that packages with no download location (e.g. packagegroups,
>   images, virtual providers) are handled gracefully without crashing
>   the SPDX generation pipeline.
>
> test_version_extraction_patterns:
>   Verify that Git source packages get SRCREV as their version in the
>   SPDX output, rather than the recipe PV.
>
> test_packageconfig_spdx:
>   Verify that PACKAGECONFIG features are correctly recorded in SPDX
>   build parameters when SPDX_INCLUDE_PACKAGECONFIG is enabled.
>
> Signed-off-by: Stefano Tondo <stefano.tondo.ext@siemens.com>
> ---
>  meta/lib/oeqa/selftest/cases/spdx.py | 104 +++++++++++++++++++++------
>  1 file changed, 83 insertions(+), 21 deletions(-)

This seems to be breaking some of the existing tests:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3602
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3385
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3498

Cheers,

Richard