]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest/recipetool: fix for python 3.12
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Thu, 8 Feb 2024 08:27:32 +0000 (09:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Feb 2024 23:14:49 +0000 (23:14 +0000)
commit7374a8a2810a6cf027bfefefe87691a3529123ff
tree479de697ce1e621b1153bb3cacd4567d82c0169c
parent68286d0b70cf09a0d2950b48945c9192fb8c8769
oeqa/selftest/recipetool: fix for python 3.12

test_recipetool_create_github and test_recipetool_create_github_tarball
fail because the old meson version used by these tests cases does not
run on Python 3.12. The issue is in the dependencies.py which comes with
meson:
ERROR: build/tmp/work/recipetool-3z4osyl7/source/git/mesonbuild/
       dependencies.py:777: SyntaxWarning: invalid escape sequence '\.'

Use meson 1.3.1 (what is currently also used on master) as a reference
for these tests.

With this version of meson, recipetool creates recipes named
meson_git.bb or meson_1.3.1.bb. Since this looks more reasonable than
e.g. python3-meson_git.bb the test gets adapted.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/recipetool.py