]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/sdk/maturin: be less picky in the list_python test
authorRoss Burton <ross.burton@arm.com>
Sat, 10 May 2025 08:43:48 +0000 (09:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 May 2025 09:52:52 +0000 (10:52 +0100)
commitae9b5dae77ef140422fcf71d239ca028c9208447
tree2f428c15e91ad81822bf655c23fc18a0986bb707
parent1c84361829921e91d782b189e2bde818a2d1491c
oeqa/sdk/maturin: be less picky in the list_python test

The test assumed that maturin would only find a single Python binary, in
/usr/bin/python3*.

However in eSDKs with buildtools a Python is shipped with the SDK, so
the test failed.

Generalise the test so that it runs python3 and obtains its path and
version, and then verifies that path and and version are found by
Maturin. This means we're not assuming a single Python, or the paths, or
that the Python is CPython.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdk/cases/maturin.py