mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
oeqa/selftest: lock down Meson git revision for reliability
The test_recipetool_create_github test fetches HEAD of the repository so upstream changes can (and do) break the test. Avoid these problems by passing the rev= argument in the URL to lock the checkout to the same version that is fetched in the github_tarball test. Also pass the commands to runCmd() as a list instead of a string, the semicolon in the URL needs more quotes if the shell is involved and passing a list bypasses the shell entirely. (From OE-Core rev: cbb5961d3db27f81967345a73267920f2623ccac) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4a48386e91
commit
8a96509017
@@ -442,8 +442,8 @@ class RecipetoolTests(RecipetoolBase):
|
|||||||
temprecipe = os.path.join(self.tempdir, 'recipe')
|
temprecipe = os.path.join(self.tempdir, 'recipe')
|
||||||
os.makedirs(temprecipe)
|
os.makedirs(temprecipe)
|
||||||
recipefile = os.path.join(temprecipe, 'meson_git.bb')
|
recipefile = os.path.join(temprecipe, 'meson_git.bb')
|
||||||
srcuri = 'https://github.com/mesonbuild/meson'
|
srcuri = 'https://github.com/mesonbuild/meson;rev=0.32.0'
|
||||||
result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
|
result = runCmd(['recipetool', 'create', '-o', temprecipe, srcuri])
|
||||||
self.assertTrue(os.path.isfile(recipefile))
|
self.assertTrue(os.path.isfile(recipefile))
|
||||||
checkvars = {}
|
checkvars = {}
|
||||||
checkvars['LICENSE'] = set(['Apache-2.0'])
|
checkvars['LICENSE'] = set(['Apache-2.0'])
|
||||||
|
|||||||
Reference in New Issue
Block a user