Skip to contentSkip to conversation

meta-yocto: remove erroneous poky-bleeding selftest in meta/

PATCH In review Alexander Kanavin 3 participants 5 messages Jun 24, 2025 – Jun 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-yocto: remove erroneous poky-bleeding selftest in meta/

This was added to meta-yocto repository by mistake, and should be in oe-core (which is done in a separate patch).

---
 meta/lib/oeqa/selftest/cases/pokybleeding.py | 32 --------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 meta/lib/oeqa/selftest/cases/pokybleeding.py
meta/lib/oeqa/selftest/cases/pokybleeding.py deleted +0 -32
deleted file mode 100644
index d0940d6..0000000
@@ -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")
Signature · 1 line
2.39.5
#1 lore raw
Quoted 38 lines · Alexander Kanavin via lists.yoctoproject.org

This was added to meta-yocto repository by mistake, and should be in oe-core (which is done in a separate patch).

---
 meta/lib/oeqa/selftest/cases/pokybleeding.py | 32 --------------------

 1 file changed, 32 deletions(-)

 delete mode 100644 meta/lib/oeqa/selftest/cases/pokybleeding.py

meta/lib/oeqa/selftest/cases/pokybleeding.py deleted +0 -22
deleted file mode 100644
index d0940d6..0000000
@@ -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")
-        

meta/lib/oeqa/selftest/cases/pokybleeding.py line 32

Quoted 10 lines
meta/lib/oeqa/selftest/cases/pokybleeding.py deleted +0 -10
-        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")

Since this can't work without poky, I'd argue it is in the right place?

Cheers,

Richard

#2 lore raw
Quoted 1 line · Richard Purdie

Since this can't work without poky, I'd argue it is in the right place?

There are a few other selftests in oe-core that have a hard dependency on poky (e.g. multiconfig, fitimage). I don't mind keeping this test in meta-yocto repo, but it should really be moved out of meta/ directory as it's super confusing:

https://git.yoctoproject.org/meta-yocto/tree/

Alex

#3 lore raw
Quoted 8 lines · Alexander Kanavin
Quoted 2 lines · Richard Purdie

Since this can't work without poky, I'd argue it is in the right place?

There are a few other selftests in oe-core that have a hard dependency on poky (e.g. multiconfig, fitimage).

We should probably fix that as it wasn't intended.

Quoted 4 lines

I don't mind keeping this test in meta-yocto repo, but it should really be moved out of meta/ directory as it's super confusing:

https://git.yoctoproject.org/meta-yocto/tree/

Agreed, it should belong alongside the distro.

Cheers,

Richard

#4 lore raw
Quoted 11 lines · Richard Purdie via lists.yoctoproject.org
Quoted 8 lines · Alexander Kanavin
Quoted 2 lines · Richard Purdie

Since this can't work without poky, I'd argue it is in the right place?

There are a few other selftests in oe-core that have a hard dependency on poky (e.g. multiconfig, fitimage).

We should probably fix that as it wasn't intended.

The FIT image tests compile the linux-yocto, linux-yocto-fitimage, and u-boot recipes. I tried running oe-selftest -r fitimage without setting DISTRO = "poky" and with MACHINE = "qemuarm" instead of "beaglebone- yocto". The MACHINE setting is a bit more complicated because of the device trees, but that should also be possible.
Ideally, most of the fitimage tests should be in OE-core with qemuarm, and perhaps some tests for beaglebone-yocto could be moved to meta- yocto as well. It's not my highest priority task, but I will try to find some time to clean this up.

Adrian

Quoted 23 lines
Quoted 5 lines

I don't mind keeping this test in meta-yocto repo, but it should really be moved out of meta/ directory as it's super confusing:

https://git.yoctoproject.org/meta-yocto/tree/

Agreed, it should belong alongside the distro.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#13673):
https://lists.yoctoproject.org/g/poky/message/13673
Mute This Topic: https://lists.yoctoproject.org/mt/113807263/3616858
Group Owner: [email protected]
Unsubscribe:
https://lists.yoctoproject.org/g/poky/unsub [[email protected] ]
-=-=-=-=-=-=-=-=-=-=-=-