summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-09 09:29:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-09 13:55:06 +0000
commitfcabbccd5f2fdc3ef2872305c219731d92995c62 (patch)
treeeec82e375ccccd6b2802603c1f5107f061b244f6 /meta/lib/oeqa
parentf9ed2bdfdb2bc1b039d00b5fd545e094438eb235 (diff)
downloadpoky-fcabbccd5f2fdc3ef2872305c219731d92995c62.tar.gz
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>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/cases/recipetool.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py
index 780e25b6c8..5694d6fb69 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -456,8 +456,9 @@ class RecipetoolCreateTests(RecipetoolBase):
456 os.makedirs(temprecipe) 456 os.makedirs(temprecipe)
457 recipefile = os.path.join(temprecipe, 'meson_git.bb') 457 recipefile = os.path.join(temprecipe, 'meson_git.bb')
458 srcuri = 'https://github.com/mesonbuild/meson;rev=1.3.1' 458 srcuri = 'https://github.com/mesonbuild/meson;rev=1.3.1'
459 result = runCmd(['recipetool', 'create', '-o', temprecipe, srcuri]) 459 cmd = ['recipetool', 'create', '-o', temprecipe, srcuri]
460 self.assertTrue(os.path.isfile(recipefile)) 460 result = runCmd(cmd)
461 self.assertTrue(os.path.isfile(recipefile), msg="recipe %s not created for command %s, output %s" % (recipefile, " ".join(cmd), result.output))
461 checkvars = {} 462 checkvars = {}
462 checkvars['LICENSE'] = set(['Apache-2.0', 'Proprietary', 'Unknown']) 463 checkvars['LICENSE'] = set(['Apache-2.0', 'Proprietary', 'Unknown'])
463 checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https;branch=1.3' 464 checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https;branch=1.3'