summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBenjamin Esquivel <benjamin.esquivel@linux.intel.com>2016-10-04 15:08:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-05 10:10:10 +0100
commitd89e16d5cc7106ab8186c701d92c3cc90ba5720c (patch)
treea790a239fb2bc2642e3a78f90d3497b5f4580439 /meta
parent16882885f656a2312b1d441cb800e1ee28f07dcf (diff)
downloadpoky-d89e16d5cc7106ab8186c701d92c3cc90ba5720c.tar.gz
oeqa/selftest: Update test after fetcher error changes
The following poky commit: 4359ef08 base.bbclass: Use bb.fatal() instead of raising FuncFailed changed the way the fetcher error is reported. Previous reporting: ...Function failed: Fetcher failure for URL:... New reporting: ...Fetcher failure for URL:... Updating how the check is done fixes the test error and accurately confirms the tested scenario for test_invalid_recipe_src_uri. [YOCTO #10370] (From OE-Core rev: 197da17dc97cef87375ae9190c6d1495e1c615b9) Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index d8cb835829..baae1e0e54 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -145,7 +145,7 @@ INHERIT_remove = \"report-error\"
145 self.assertEqual(result.status, 1, msg="Command succeded when it should have failed. bitbake output: %s" % result.output) 145 self.assertEqual(result.status, 1, msg="Command succeded when it should have failed. bitbake output: %s" % result.output)
146 self.assertTrue('Fetcher failure: Unable to find file file://invalid anywhere. The paths that were searched were:' in result.output, msg = "\"invalid\" file \ 146 self.assertTrue('Fetcher failure: Unable to find file file://invalid anywhere. The paths that were searched were:' in result.output, msg = "\"invalid\" file \
147doesn't exist, yet no error message encountered. bitbake output: %s" % result.output) 147doesn't exist, yet no error message encountered. bitbake output: %s" % result.output)
148 line = self.getline(result, 'Function failed: Fetcher failure for URL: \'file://invalid\'. Unable to fetch URL from any source.') 148 line = self.getline(result, 'Fetcher failure for URL: \'file://invalid\'. Unable to fetch URL from any source.')
149 self.assertTrue(line and line.startswith("ERROR:"), msg = "\"invalid\" file \ 149 self.assertTrue(line and line.startswith("ERROR:"), msg = "\"invalid\" file \
150doesn't exist, yet fetcher didn't report any error. bitbake output: %s" % result.output) 150doesn't exist, yet fetcher didn't report any error. bitbake output: %s" % result.output)
151 151