diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-02 21:39:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-06 16:45:14 +0100 |
commit | f483ee4a869fb1dafbe4bdf2da228cdaa40b38bd (patch) | |
tree | 2efdd013708bb26090fd024c239d9753e7e44dbd /lib/bb/tests | |
parent | 76396230731432b38fdcb25ad27bb84065bc89e5 (diff) | |
download | bitbake-f483ee4a869fb1dafbe4bdf2da228cdaa40b38bd.tar.gz |
data/siggen: Don't expand ignored variables
If a variable is in the signature whitelist, we'd currently expand
it, then later ignore the data. This is problemtic for code which
has effects when expanded, recently source date epoch in OE-Core
for example.
We don't actually need to do this, if we pass the whitelist into
the earlier function it can avoid the expansion. This also also
give a small performance boost since we avoid running code in some
cases.
[YOCTO #13581]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests')
-rw-r--r-- | lib/bb/tests/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py index 2b137706d..5f195047d 100644 --- a/lib/bb/tests/data.py +++ b/lib/bb/tests/data.py @@ -476,7 +476,7 @@ class Contains(unittest.TestCase): class TaskHash(unittest.TestCase): def test_taskhashes(self): def gettask_bashhash(taskname, d): - tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d) + tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d, set()) taskdeps, basehash = bb.data.generate_dependency_hash(tasklist, gendeps, lookupcache, set(), "somefile") bb.warn(str(lookupcache)) return basehash["somefile:" + taskname] |