From: Richard Purdie Date: Thu, 14 Feb 2013 21:35:25 +0000 (+0000) Subject: bitbake: tests/codeparser: Hack around circular inclusion problem X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc7c8fa99a0914dc052c148d3aff51abcbb84b26;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: tests/codeparser: Hack around circular inclusion problem 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. (Bitbake rev: a206ae0d7769a41ff3666d0f53ff9cf422dfa518) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py index 9b2d5886c01..e544586c9c3 100644 --- a/bitbake/lib/bb/tests/codeparser.py +++ b/bitbake/lib/bb/tests/codeparser.py @@ -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):