summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2016-01-19 16:04:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:38:51 +0000
commitc886a786cf63e4e19f004c2d8853c859ba5b938a (patch)
tree3521466e65dcf6f973f2b3825d0fe0d5104972f8 /bitbake
parentf13003385691ba9c267ee22e7291a10130532c77 (diff)
downloadpoky-c886a786cf63e4e19f004c2d8853c859ba5b938a.tar.gz
bitbake: tests/codeparser.py: Add filename/lineno flags to test variable
A recent change in bitbake added filename/lineno information to the parameters of bb.data.build_dependencies(). The codeparser tests required a little adaption to the changes, adding the flags to the FOO variable used in the tests. The error seen when running the tests is a TypeError exception raised in bb.codeparser: TypeError: int() argument must be a string or a number, not 'NoneType' (Bitbake rev: f1fe674397ac5cd355696d5b4cc90b7cfa6c867f) Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/codeparser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py
index 4454bc51ed..bb820e4037 100644
--- a/bitbake/lib/bb/tests/codeparser.py
+++ b/bitbake/lib/bb/tests/codeparser.py
@@ -293,7 +293,12 @@ bb.data.getVar(a(), d, False)
293 def test_python(self): 293 def test_python(self):
294 self.d.setVar("FOO", self.pydata) 294 self.d.setVar("FOO", self.pydata)
295 self.setEmptyVars(["inexpand", "a", "test2", "test"]) 295 self.setEmptyVars(["inexpand", "a", "test2", "test"])
296 self.d.setVarFlags("FOO", {"func": True, "python": True}) 296 self.d.setVarFlags("FOO", {
297 "func": True,
298 "python": True,
299 "lineno": 1,
300 "filename": "example.bb",
301 })
297 302
298 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) 303 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
299 304