poky/meta/lib/oeqa/selftest/cases/pokybleeding.py
Mikko Rapeli 36dcd01bad oeqa/selftest/pokybleeding: change from mtd-utils-selftest to pseudo
Test recipe git repo URL is checked for newer commits and
mtd-utils-selftest check is sometimes failing due to server
errors. Use pseudo which uses Yocto Project in git servers
which should be reliable.

Fixes: [YOCTO #15855]

build/build-st-17692/tmp/hosttools"; export HOME="/srv/pokybuild"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all -c clone.defaultRemoteName=origin ls-remote git://git.infradead.org/mtd-utils.git  failed with exit code 128, output:
fatal: read error: Connection reset by peer

(From meta-yocto rev: a82be5486058c2e5a1e286dba17c33444889c982)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-05-12 17:06:07 +01:00

33 lines
1.0 KiB
Python

#
# 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")