]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
tests/codeparser: Hack around circular inclusion problem
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 21:35:25 +0000 (21:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Feb 2013 12:00:08 +0000 (12:00 +0000)
There is a circular dependency issue where bb.data can't directly depend on
bb.parse. The tests were failing due to this issue which is misleading. This
patch hacks around it for now. I'd rather that than not running tests at all.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/tests/codeparser.py

index 9b2d5886c01471a656a6151f84e45f36f1d00375..e544586c9c3da0302a70f3201b887bb1b26ba50c 100644 (file)
@@ -24,6 +24,9 @@ import bb
 
 logger = logging.getLogger('BitBake.TestCodeParser')
 
+# bb.data references bb.parse but can't directly import due to circular dependencies.
+# Hack around it for now :( 
+import bb.parse
 import bb.data
 
 class ReferenceTest(unittest.TestCase):