mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
selftest/recipetool: Improve test failure output
When the test fails, it simply says the file doesn't exist. This isn't helpful so improve the output. (From OE-Core rev: ea6b42485696c6981157a28da2dc9a67f2f3f9c6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -456,8 +456,9 @@ class RecipetoolCreateTests(RecipetoolBase):
|
|||||||
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;rev=1.3.1'
|
srcuri = 'https://github.com/mesonbuild/meson;rev=1.3.1'
|
||||||
result = runCmd(['recipetool', 'create', '-o', temprecipe, srcuri])
|
cmd = ['recipetool', 'create', '-o', temprecipe, srcuri]
|
||||||
self.assertTrue(os.path.isfile(recipefile))
|
result = runCmd(cmd)
|
||||||
|
self.assertTrue(os.path.isfile(recipefile), msg="recipe %s not created for command %s, output %s" % (recipefile, " ".join(cmd), result.output))
|
||||||
checkvars = {}
|
checkvars = {}
|
||||||
checkvars['LICENSE'] = set(['Apache-2.0', 'Proprietary', 'Unknown'])
|
checkvars['LICENSE'] = set(['Apache-2.0', 'Proprietary', 'Unknown'])
|
||||||
checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https;branch=1.3'
|
checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https;branch=1.3'
|
||||||
|
|||||||
Reference in New Issue
Block a user