From 6ae605e3434563209519963522e4f6c7063da205 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 24 Jun 2025 17:00:21 +0200 Subject: selftest: move pokybleeding selftest from meta to meta-poky meta/ is 'owned' by oe-core and meta-yocto repo should not be putting files in it. (From meta-yocto rev: 83be7b1c70a7f90f611ad33284d0b8f963552eae) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta-poky/lib/oeqa/selftest/cases/pokybleeding.py | 32 +++++++++++++++++++++++ meta/lib/oeqa/selftest/cases/pokybleeding.py | 32 ----------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 meta-poky/lib/oeqa/selftest/cases/pokybleeding.py delete mode 100644 meta/lib/oeqa/selftest/cases/pokybleeding.py diff --git a/meta-poky/lib/oeqa/selftest/cases/pokybleeding.py b/meta-poky/lib/oeqa/selftest/cases/pokybleeding.py new file mode 100644 index 0000000000..d0940d680d --- /dev/null +++ b/meta-poky/lib/oeqa/selftest/cases/pokybleeding.py @@ -0,0 +1,32 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +from oeqa.utils.commands import bitbake, get_bb_var +from oeqa.selftest.case import OESelftestTestCase + +class PokyBleeding(OESelftestTestCase): + + def test_poky_bleeding_autorev(self): + """ + Test that poky-bleeding.bbclass sets SRCREV to "AUTOINC" for recipe + with a single scm in SRC_URI and for recipe with two scm's in SRC_URI. + """ + + self.assertNotEqual( get_bb_var('SRCREV', 'pseudo'), "AUTOINC") + + self.assertNotEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") + self.assertNotEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") + + features = ''' +INHERIT += "poky-bleeding" +POKY_AUTOREV_RECIPES = "hello-rs pseudo" +''' + self.write_config(features) + + self.assertEqual( get_bb_var('SRCREV', 'pseudo'), "AUTOINC") + + self.assertEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") + self.assertEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") diff --git a/meta/lib/oeqa/selftest/cases/pokybleeding.py b/meta/lib/oeqa/selftest/cases/pokybleeding.py deleted file mode 100644 index d0940d680d..0000000000 --- a/meta/lib/oeqa/selftest/cases/pokybleeding.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright OpenEmbedded Contributors -# -# SPDX-License-Identifier: MIT -# - -from oeqa.utils.commands import bitbake, get_bb_var -from oeqa.selftest.case import OESelftestTestCase - -class PokyBleeding(OESelftestTestCase): - - def test_poky_bleeding_autorev(self): - """ - Test that poky-bleeding.bbclass sets SRCREV to "AUTOINC" for recipe - with a single scm in SRC_URI and for recipe with two scm's in SRC_URI. - """ - - self.assertNotEqual( get_bb_var('SRCREV', 'pseudo'), "AUTOINC") - - self.assertNotEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") - self.assertNotEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") - - features = ''' -INHERIT += "poky-bleeding" -POKY_AUTOREV_RECIPES = "hello-rs pseudo" -''' - self.write_config(features) - - self.assertEqual( get_bb_var('SRCREV', 'pseudo'), "AUTOINC") - - self.assertEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") - self.assertEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") -- cgit v1.2.3-54-g00ecf