diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-14 21:35:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-15 12:12:35 +0000 |
commit | bc7c8fa99a0914dc052c148d3aff51abcbb84b26 (patch) | |
tree | 56d7683c094551c9dff27d82ea71eef0ada3b07f /bitbake/lib/bb/tests | |
parent | 07dcffe7ecb8838b56197088af9aaf4b1368fdf5 (diff) | |
download | poky-bc7c8fa99a0914dc052c148d3aff51abcbb84b26.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r-- | bitbake/lib/bb/tests/codeparser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py index 9b2d5886c0..e544586c9c 100644 --- a/bitbake/lib/bb/tests/codeparser.py +++ b/bitbake/lib/bb/tests/codeparser.py | |||
@@ -24,6 +24,9 @@ import bb | |||
24 | 24 | ||
25 | logger = logging.getLogger('BitBake.TestCodeParser') | 25 | logger = logging.getLogger('BitBake.TestCodeParser') |
26 | 26 | ||
27 | # bb.data references bb.parse but can't directly import due to circular dependencies. | ||
28 | # Hack around it for now :( | ||
29 | import bb.parse | ||
27 | import bb.data | 30 | import bb.data |
28 | 31 | ||
29 | class ReferenceTest(unittest.TestCase): | 32 | class ReferenceTest(unittest.TestCase): |