Skip to contentSkip to conversation

buildsteps, nightly: run bitbake-selftest

PATCH In review Stefan Stanacar 2 participants 2 messages May 13, 2013 – May 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildsteps, nightly: run bitbake-selftest

Added a new buildstep which calls bitbake-selftest.

[YOCTO #4433]

---
 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
buildset-config/nightly.conf +1 -0
index ffbc271..80173a5 100644
@@ -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'},
lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py new file +28 -0
new file mode 100644
index 0000000..7d1874f
@@ -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__ = "[email protected]"
+'''
+
+
+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)
Signature · 1 line
1.8.1.4
#1 lore raw

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

-b

Quoted 60 lines · Stefan Stanacar

Added a new buildstep which calls bitbake-selftest.

[YOCTO #4433]

---
 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
buildset-config/nightly.conf +1 -0
index ffbc271..80173a5 100644
@@ -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'},
lib/python2.7/site-packages/autobuilder/buildsteps/RunBitbakeSelftest.py new file +28 -1
new file mode 100644
index 0000000..7d1874f
@@ -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__ = "[email protected]"
+'''
+
+
+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

Signature · 3 lines
Elizabeth Flanagan
Yocto Project
Build and Release