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:37:56 +0100 |
| commit | 0402e69853f21cd8f0718ca9197574a4aa162f53 (patch) | |
| tree | 1b19f38e177f963caa147ab518f121b3a5149edc | |
| parent | 7be82bf66524c9c78ddf798131d1cb38489a14c1 (diff) | |
| download | poky-0402e69853f21cd8f0718ca9197574a4aa162f53.tar.gz | |
bitbake: 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.
(Bitbake rev: 83f41281ec3d9b4327ffc8e2312e1fb8f53cbf02)
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/tests/data.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py index b7676859a6..98e430ce2a 100644 --- a/bitbake/lib/bb/tests/data.py +++ b/bitbake/lib/bb/tests/data.py | |||
| @@ -80,7 +80,6 @@ class DataExpansions(unittest.TestCase): | |||
| 80 | def test_python_snippet_function_reference(self): | 80 | def test_python_snippet_function_reference(self): |
| 81 | self.d.setVar("TESTVAL", "testvalue") | 81 | self.d.setVar("TESTVAL", "testvalue") |
| 82 | self.d.setVar("testfunc", 'd.getVar("TESTVAL")') | 82 | self.d.setVar("testfunc", 'd.getVar("TESTVAL")') |
| 83 | self.d.setVarFlag("testfunc", "func", "1") | ||
| 84 | context = bb.utils.get_context() | 83 | context = bb.utils.get_context() |
| 85 | context["testfunc"] = lambda d: d.getVar("TESTVAL") | 84 | context["testfunc"] = lambda d: d.getVar("TESTVAL") |
| 86 | val = self.d.expand("${@testfunc(d)}") | 85 | val = self.d.expand("${@testfunc(d)}") |
