[OE-core] [PATCH v2] classes/testsdk: Split implementation into classes

Joshua Watt jpewhacker at gmail.com
Mon Nov 19 16:33:30 UTC 2018


On Mon, 2018-11-19 at 14:25 +0000, Richard Purdie wrote:
> Thanks for reworking this, it does look a lot better and should stop
> some of the bbclass proliferation we're seeing.
> 
> I assume all the code was functionally unchanged in the move?

Correct.

> 
> On Sun, 2018-11-18 at 13:19 -0600, Joshua Watt wrote:
> >  python () {
> > -    if oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False"):
> > -        bb.build.addtask("testsdk", None, "do_populate_sdk", d)
> > -        bb.build.addtask("testsdkext", None,
> > "do_populate_sdk_ext", d)
> > +    auto = oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False")
> > +    bb.build.addtask("testsdk", None, ("",
> > "do_populate_sdk")[auto], d)
> > +    bb.build.addtask("testsdkext", None, ("",
> > "do_populate_sdk_ext")[auto], d)
> >  }
> 
> This doesn't look like an improvement to code readability? :)

It isn't. I will fix it with v3.

> 
> Cheers,
> 
> Richard
> 
> 
> 
-- 
Joshua Watt <JPEWhacker at gmail.com>



More information about the Openembedded-core mailing list