summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-11-27 16:05:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-13 10:44:35 +0000
commitd6f210f69046b881646206e6dac842294ea312e3 (patch)
tree9385492df3189563aa26f249e8a71af9087d0fd7
parentadebd9f9bca496510bf5631f62eb16d283f1d728 (diff)
downloadpoky-d6f210f69046b881646206e6dac842294ea312e3.tar.gz
bitbake: lib/bb/tests: use bb.build.listtasks() instead of __BBTASKS
Use the new listtasks() function (introduced in 185c4b) to avoid accessing a private variable. Also use assertSequenceEqual() directly as we don't really care about the actual type returned, only that it's a sequence. (Bitbake rev: 452289efc6d3608ceca321286fd5bf417a6e1bed) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/tests/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py
index 410679d5a1..56eb66be9f 100644
--- a/bitbake/lib/bb/tests/parse.py
+++ b/bitbake/lib/bb/tests/parse.py
@@ -201,7 +201,7 @@ deltask ${EMPTYVAR}
201 f = self.parsehelper(self.addtask_deltask) 201 f = self.parsehelper(self.addtask_deltask)
202 d = bb.parse.handle(f.name, self.d)[''] 202 d = bb.parse.handle(f.name, self.d)['']
203 203
204 self.assertEqual(['do_fetch2', 'do_patch2', 'do_myplaintask', 'do_mytask', 'do_mytask2', 'do_mytask5'], d.getVar("__BBTASKS")) 204 self.assertSequenceEqual(['do_fetch2', 'do_patch2', 'do_myplaintask', 'do_mytask', 'do_mytask2', 'do_mytask5'], bb.build.listtasks(d))
205 self.assertEqual(['do_mytask'], d.getVarFlag("do_mytask5", "deps")) 205 self.assertEqual(['do_mytask'], d.getVarFlag("do_mytask5", "deps"))
206 206
207 broken_multiline_comment = """ 207 broken_multiline_comment = """