[yocto] [yocto-autobuilder][PATCH] buildsteps, nightly: run bitbake-selftest

Flanagan, Elizabeth elizabeth.flanagan at intel.com
Tue May 14 22:54:20 PDT 2013


Merged into eflanagan/yocto-autobuilder-refactor. In production tomorrow.

-b

On Mon, May 13, 2013 at 3:13 AM, Stefan Stanacar
<stefanx.stanacar at intel.com> wrote:
> Added a new buildstep which calls bitbake-selftest.
>
> [YOCTO #4433]
>
> Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
> ---
>  buildset-config/nightly.conf                       |  1 +
>  .../autobuilder/buildsteps/RunBitbakeSelftest.py   | 28 ++++++++++++++++++++++
>  2 files changed, 29 insertions(+)
>  create mode 100644 lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py
>
> diff --git a/buildset-config/nightly.conf b/buildset-config/nightly.conf
> index ffbc271..80173a5 100644
> --- a/buildset-config/nightly.conf
> +++ b/buildset-config/nightly.conf
> @@ -51,6 +51,7 @@ steps: [{'SetDest':{}},
>          {'CreateAutoConf': {'machine': 'qemux86', 'SDKMACHINE' : 'x86_64',
>                              'distro': 'poky'}},
>          {'CreateBBLayersConf': {'buildprovider' : 'yocto'}},
> +        {'RunBitbakeSelftest': {}},
>          {'BuildImages': {'images': 'universe -c fetch'}},
>          {'TriggerBuilds': {'schedulerNames':
>                               {'build-appliance': {'waitForFinish': 'False'},
> diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py b/lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py
> new file mode 100644
> index 0000000..7d1874f
> --- /dev/null
> +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py
> @@ -0,0 +1,28 @@
> +'''
> +Created on May 13, 2013
> +
> +__author__ = "Stefan Stanacar"
> +__copyright__ = "Copyright 2013, Intel Corp."
> +__credits__ = ["Stefan Stanacar"]
> +__license__ = "GPL"
> +__version__ = "2.0"
> +__maintainer__ = "Stefan Stanacar"
> +__email__ = "stefanx.stanacar at intel.com"
> +'''
> +
> +
> +from buildbot.steps.shell import ShellCommand
> +
> +class RunBitbakeSelftest(ShellCommand):
> +    haltOnFailure = False
> +    flunkOnFailure = True
> +    name = "Running bitbake-selftest"
> +    def __init__(self, factory, argdict=None, **kwargs):
> +        self.factory = factory
> +        for k, v in argdict.iteritems():
> +                setattr(self, k, v)
> +        self.description = "Running bitbake-selftest"
> +        self.timeout = 100000
> +        kwargs['timeout']=self.timeout
> +        self.command = ". ./oe-init-build-env; bitbake-selftest"
> +        ShellCommand.__init__(self, **kwargs)
> --
> 1.8.1.4
>



-- 
Elizabeth Flanagan
Yocto Project
Build and Release



More information about the yocto mailing list