[yocto] [yocto-autobuilder][PATCH 0/3] Enabling of the new testimage class for sanity tests

Flanagan, Elizabeth elizabeth.flanagan at intel.com
Thu Jul 18 08:32:11 PDT 2013


On Thu, Jul 18, 2013 at 5:37 AM, Paul Eggleton
<paul.eggleton at linux.intel.com> wrote:
> Hi Beth,
>
> On Wednesday 17 July 2013 14:30:27 Flanagan, Elizabeth wrote:
>> So, after the oe-core failure last night that was due to how we
>> determine when to use the new testimage, this has kind of bumped up
>> the need for the autobuilder to start using LAYERVERSION_* as a means
>> of determinating major functionality changes.
>>
>> In this example, we've essentially broken backwards compatibility for
>> oe-core builds on the autobuilder. I put in a quick and dirty patch
>> last night just to get it so oe-core sanity will run using the old
>> sanity testing framework. I'm working on getting a GetLayerVersion
>> buildstep working so we can utilize it both for the new test framework
>> as well as to differentiate the toolchain image builds (prior to 2 we
>> build meta-toolchain-gmae, post core-image-sato-sdk).
>
> Wouldn't the simplest thing be to just check for the presence of
> meta/classes/testimage.bbclass?

Actually, no. What I would need to do here in buildbot land is either
script out the conditional in the bash that executes (ick, kind of a
pain to debug) or make an entirely new buildstep to check for the
existence of that one file, set a property and then check for that
property in RunSanityTesting. And that's just for sanity testing. For
meta-toolchain-gmae, I'd have to have yet another way of doing it.

It's so much easier to just have a GetLayerVersion step for each layer and then:

layerversion = self.getProperty("layerversion_core")
if layerversion and int(layerversion) > 1:
  #do one thing
else:
  #do something else.

>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre

-- 
Elizabeth Flanagan
Yocto Project
Build and Release



More information about the yocto mailing list