diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-14 11:43:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-14 17:03:54 +0000 |
commit | 8699cd4f618477f5e36e50fe40de15387e351e26 (patch) | |
tree | df51021fc2433df8d267f6c37358fa08da725cb2 | |
parent | a0bbc06099b4d254a1087b4a6be309518f010e1c (diff) | |
download | poky-8699cd4f618477f5e36e50fe40de15387e351e26.tar.gz |
ptest: d.keys() is slow, use a list instead
Unfortunately d.keys is extremely slow. Using a list in this case should be
fine since the addtask lines are immediately above the code and aren't
going to change often.
(From OE-Core rev: 5901189f0442cefc4d17623547f7358ffc2d37a6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/ptest.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index e5bbb89ade..caf7101224 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -55,6 +55,6 @@ python () { | |||
55 | 55 | ||
56 | # Remove all '*ptest_base' tasks when ptest is not enabled | 56 | # Remove all '*ptest_base' tasks when ptest is not enabled |
57 | if not(d.getVar('PTEST_ENABLED', True) == "1"): | 57 | if not(d.getVar('PTEST_ENABLED', True) == "1"): |
58 | for i in filter(lambda k: d.getVarFlag(k, "task") and k.endswith("ptest_base"), d.keys()): | 58 | for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']: |
59 | bb.build.deltask(i, d) | 59 | bb.build.deltask(i, d) |
60 | } | 60 | } |