From 0402e69853f21cd8f0718ca9197574a4aa162f53 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Thu, 4 Aug 2022 11:12:09 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/tests/data.py | 1 - 1 file changed, 1 deletion(-) 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): 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)}") -- cgit v1.2.3-54-g00ecf