[oe-commits] [openembedded-core] 03/17: oeqa/selftest: Update test after fetcher error changes

git at git.openembedded.org git at git.openembedded.org
Tue Oct 4 23:19:10 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 197da17dc97cef87375ae9190c6d1495e1c615b9
Author: Benjamin Esquivel <benjamin.esquivel at linux.intel.com>
AuthorDate: Tue Oct 4 15:08:16 2016 -0500

    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]
    
    Signed-off-by: Benjamin Esquivel <benjamin.esquivel at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/selftest/bbtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index d8cb835..baae1e0 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -145,7 +145,7 @@ INHERIT_remove = \"report-error\"
         self.assertEqual(result.status, 1, msg="Command succeded when it should have failed. bitbake output: %s" % result.output)
         self.assertTrue('Fetcher failure: Unable to find file file://invalid anywhere. The paths that were searched were:' in result.output, msg = "\"invalid\" file \
 doesn't exist, yet no error message encountered. bitbake output: %s" % result.output)
-        line = self.getline(result, 'Function failed: Fetcher failure for URL: \'file://invalid\'. Unable to fetch URL from any source.')
+        line = self.getline(result, 'Fetcher failure for URL: \'file://invalid\'. Unable to fetch URL from any source.')
         self.assertTrue(line and line.startswith("ERROR:"), msg = "\"invalid\" file \
 doesn't exist, yet fetcher didn't report any error. bitbake output: %s" % result.output)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list