mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
recipes/classes/scripts: Drop SRCPV usage in OE-Core
Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -433,7 +433,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
checkvars['LICENSE'] = 'GPL-2.0-only'
|
||||
checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263'
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '0.1+git${SRCPV}'
|
||||
checkvars['PV'] = '0.1+git'
|
||||
checkvars['SRC_URI'] = 'git://git.yoctoproject.org/git/dbus-wait;protocol=https;branch=master'
|
||||
checkvars['SRCREV'] = srcrev
|
||||
checkvars['DEPENDS'] = set(['dbus'])
|
||||
@@ -572,7 +572,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
self.assertIn('_git.bb', recipefile, 'Recipe file incorrectly named')
|
||||
checkvars = {}
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.0+git${SRCPV}'
|
||||
checkvars['PV'] = '1.0+git'
|
||||
checkvars['SRC_URI'] = url_branch
|
||||
checkvars['SRCREV'] = '${AUTOREV}'
|
||||
self._test_recipe_contents(recipefile, checkvars, [])
|
||||
@@ -591,7 +591,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
self.assertIn('_git.bb', recipefile, 'Recipe file incorrectly named')
|
||||
checkvars = {}
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.5+git${SRCPV}'
|
||||
checkvars['PV'] = '1.5+git'
|
||||
checkvars['SRC_URI'] = url_branch
|
||||
checkvars['SRCREV'] = checkrev
|
||||
self._test_recipe_contents(recipefile, checkvars, [])
|
||||
|
||||
@@ -368,7 +368,7 @@ class RecipetoolCreateTests(RecipetoolBase):
|
||||
checkvars['LICENSE'] = 'LGPL-2.1-only'
|
||||
checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34'
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.11+git${SRCPV}'
|
||||
checkvars['PV'] = '1.11+git'
|
||||
checkvars['SRC_URI'] = srcuri + ';branch=master'
|
||||
checkvars['DEPENDS'] = set(['libcheck', 'libjpeg-turbo', 'libpng', 'libx11', 'libxext', 'pango'])
|
||||
inherits = ['autotools', 'pkgconfig']
|
||||
|
||||
@@ -188,7 +188,6 @@ class SStateBase(OESelftestTestCase):
|
||||
class SStateTests(SStateBase):
|
||||
def test_autorev_sstate_works(self):
|
||||
# Test that a git repository which changes is correctly handled by SRCREV = ${AUTOREV}
|
||||
# when PV does not contain SRCPV
|
||||
|
||||
tempdir = tempfile.mkdtemp(prefix='sstate_autorev')
|
||||
tempdldir = tempfile.mkdtemp(prefix='sstate_autorev_dldir')
|
||||
|
||||
Reference in New Issue
Block a user