Added a new buildstep which calls bitbake-selftest.

[YOCTO #4433]

Signed-off-by: Stefan Stanacar <[email protected]>
---
 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__ = "[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

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to