mirror of
https://git.yoctoproject.org/poky
synced 2026-02-21 00:49:41 +01:00
selftest/devtool: Check branch in git fetch
The commit 'meta/scripts: Manual git url branch additions (dc53fe75cc)'
forget the url branch= parameter in the devtool git fetch test.
(From OE-Core rev: 1419168a58a5caf99e24ada08c9ab639344a78b4)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
392f2933b6
commit
db210eef9a
@@ -442,6 +442,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
tempdir = tempfile.mkdtemp(prefix='devtoolqa')
|
||||
self.track_for_cleanup(tempdir)
|
||||
url = 'gitsm://git.yoctoproject.org/mraa'
|
||||
url_branch = '%s;branch=master' % url
|
||||
checkrev = 'ae127b19a50aa54255e4330ccfdd9a5d058e581d'
|
||||
testrecipe = 'mraa'
|
||||
srcdir = os.path.join(tempdir, testrecipe)
|
||||
@@ -462,7 +463,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
checkvars = {}
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.0+git${SRCPV}'
|
||||
checkvars['SRC_URI'] = url
|
||||
checkvars['SRC_URI'] = url_branch
|
||||
checkvars['SRCREV'] = '${AUTOREV}'
|
||||
self._test_recipe_contents(recipefile, checkvars, [])
|
||||
# Try with revision and version specified
|
||||
@@ -481,7 +482,7 @@ class DevtoolAddTests(DevtoolBase):
|
||||
checkvars = {}
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.5+git${SRCPV}'
|
||||
checkvars['SRC_URI'] = url
|
||||
checkvars['SRC_URI'] = url_branch
|
||||
checkvars['SRCREV'] = checkrev
|
||||
self._test_recipe_contents(recipefile, checkvars, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user