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

Paul Eggleton paul.eggleton at linux.intel.com
Fri Jul 19 03:20:28 PDT 2013


On Thursday 18 July 2013 08:32:11 Flanagan, Elizabeth wrote:
> On Thu, Jul 18, 2013 at 5:37 AM, Paul Eggleton
> <paul.eggleton at linux.intel.com> wrote:
> > 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.

OK, I can see that being easier assuming you can't just do the path check in 
the python code itself (and it's not clear to me if you have the path to the 
metadata or not at that point, based on the variable printout from a recent 
build). I'm still a little bit concerned about changing the meaning of 
LAYERVERSION, but I'm willing to admit defeat at this point in the absence of 
another acceptable solution.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list