diff options
author | Christopher Larson <kergoth@gmail.com> | 2022-08-04 11:12:09 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-04 11:36:44 +0100 |
commit | 83f41281ec3d9b4327ffc8e2312e1fb8f53cbf02 (patch) | |
tree | 9860c5a451babe3ab179ed1b90adfd8d65fc45ce | |
parent | 6cac1eac51efa9a54e8457f60ea1ea0e604c50b7 (diff) | |
download | bitbake-83f41281ec3d9b4327ffc8e2312e1fb8f53cbf02.tar.gz |
bb.tests.data: don't require the func flag for context functions
Update test_python_snippet_function_reference to not require the 'func'
flag, now that we know the real function will be returned for context
functions without the flag.
Signed-off-by: Christopher Larson <kergoth@gmail.com>
-rw-r--r-- | lib/bb/tests/data.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py index b7676859a..98e430ce2 100644 --- a/lib/bb/tests/data.py +++ b/lib/bb/tests/data.py @@ -80,7 +80,6 @@ class DataExpansions(unittest.TestCase): def test_python_snippet_function_reference(self): self.d.setVar("TESTVAL", "testvalue") self.d.setVar("testfunc", 'd.getVar("TESTVAL")') - self.d.setVarFlag("testfunc", "func", "1") context = bb.utils.get_context() context["testfunc"] = lambda d: d.getVar("TESTVAL") val = self.d.expand("${@testfunc(d)}") |