]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oeqa/selftest: Don't match log level in output
authorTyler Hall <tylerwhall@gmail.com>
Sat, 9 Aug 2014 22:43:57 +0000 (18:43 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2014 11:23:10 +0000 (12:23 +0100)
To facilitate changing the log level of the "Fetcher failure" message,
search only for the message without the "Error:" prefix.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/bbtests.py

index e765e366c149d744c6e1b3d0981e6386d0be7a82..68f97bd8e329bbf6307c218c05f09d88a1a7b1fd 100644 (file)
@@ -102,7 +102,7 @@ class BitbakeTests(oeSelfTest):
         bitbake('-ccleanall man')
         self.delete_recipeinc('man')
         self.assertEqual(result.status, 1, msg='Command succeded when it should have failed')
-        self.assertTrue('ERROR: Fetcher failure: Unable to find file file://invalid anywhere. The paths that were searched were:' in result.output)
+        self.assertTrue('Fetcher failure: Unable to find file file://invalid anywhere. The paths that were searched were:' in result.output)
         self.assertTrue('ERROR: Function failed: Fetcher failure for URL: \'file://invalid\'. Unable to fetch URL from any source.' in result.output)
 
     @testcase(171)