[oe-commits] Tyler Hall : lib/oeqa/selftest: Don't match log level in output

git at git.openembedded.org git at git.openembedded.org
Mon Aug 11 11:31:05 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 947e6f9005abc71f499f23a4dd3a5a9f8386a369
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=947e6f9005abc71f499f23a4dd3a5a9f8386a369

Author: Tyler Hall <tylerwhall at gmail.com>
Date:   Sat Aug  9 18:43:57 2014 -0400

lib/oeqa/selftest: Don't match log level in output

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 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 e765e36..68f97bd 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -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)



More information about the Openembedded-commits mailing list