diff options
author | Julien Stephan <jstephan@baylibre.com> | 2023-10-25 17:46:56 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-27 08:28:38 +0100 |
commit | be129bd0bc5ed4e637dbb313c8cf96bad660438c (patch) | |
tree | b2d75867d82705696f1f962db8f1717919dbc615 /meta/lib/oeqa/selftest/cases | |
parent | 0021e3573af3751089c45b690213f5abe4a883f8 (diff) | |
download | poky-be129bd0bc5ed4e637dbb313c8cf96bad660438c.tar.gz |
recipetool/create_buildsys_python: prefix created recipes with python3-
By convention, all python recipes start with "python3-" so update
create_buildsys_python to do this
This rule doesn't apply for packages already starting with "python"
Update recipetool's selftest accordingly
(From OE-Core rev: b0d87440e610b80f763d09784d4a90a148bb3e7b)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 48661bee6f..d3aea74228 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
@@ -445,7 +445,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
445 | # Basic test to see if github URL mangling works | 445 | # Basic test to see if github URL mangling works |
446 | temprecipe = os.path.join(self.tempdir, 'recipe') | 446 | temprecipe = os.path.join(self.tempdir, 'recipe') |
447 | os.makedirs(temprecipe) | 447 | os.makedirs(temprecipe) |
448 | recipefile = os.path.join(temprecipe, 'meson_git.bb') | 448 | recipefile = os.path.join(temprecipe, 'python3-meson_git.bb') |
449 | srcuri = 'https://github.com/mesonbuild/meson;rev=0.32.0' | 449 | srcuri = 'https://github.com/mesonbuild/meson;rev=0.32.0' |
450 | result = runCmd(['recipetool', 'create', '-o', temprecipe, srcuri]) | 450 | result = runCmd(['recipetool', 'create', '-o', temprecipe, srcuri]) |
451 | self.assertTrue(os.path.isfile(recipefile)) | 451 | self.assertTrue(os.path.isfile(recipefile)) |
@@ -479,7 +479,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
479 | temprecipe = os.path.join(self.tempdir, 'recipe') | 479 | temprecipe = os.path.join(self.tempdir, 'recipe') |
480 | os.makedirs(temprecipe) | 480 | os.makedirs(temprecipe) |
481 | pv = '0.32.0' | 481 | pv = '0.32.0' |
482 | recipefile = os.path.join(temprecipe, 'meson_%s.bb' % pv) | 482 | recipefile = os.path.join(temprecipe, 'python3-meson_%s.bb' % pv) |
483 | srcuri = 'https://github.com/mesonbuild/meson/releases/download/%s/meson-%s.tar.gz' % (pv, pv) | 483 | srcuri = 'https://github.com/mesonbuild/meson/releases/download/%s/meson-%s.tar.gz' % (pv, pv) |
484 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) | 484 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) |
485 | self.assertTrue(os.path.isfile(recipefile)) | 485 | self.assertTrue(os.path.isfile(recipefile)) |