Patchwork [buildbot,2/6] make tests configurable

login
register
mail settings
Submitter Gerd Hoffmann
Date Feb. 1, 2013, 2:02 p.m.
Message ID <1359727345-10477-3-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/217497/
State New
Headers show

Comments

Gerd Hoffmann - Feb. 1, 2013, 2:02 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qemu-master.cfg |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Patch

diff --git a/qemu-master.cfg b/qemu-master.cfg
index 2f793c1..4c45f23 100644
--- a/qemu-master.cfg
+++ b/qemu-master.cfg
@@ -683,7 +683,7 @@  from buildbot.steps.shell import Configure, Compile, ShellCommand, Test
 
 def create_build_factory(repourl, branch="HEAD",
                          make="make", configure_args=[],
-                         outoftree=False):
+                         outoftree=False, runtests=True):
     """Return a BuildFactory pre-configured with common build steps"""
     f = factory.BuildFactory()
     f.addStep(Git(repourl=repourl,
@@ -700,10 +700,11 @@  def create_build_factory(repourl, branch="HEAD",
                       env={'LANG': 'C'},
                       timeout=2400,
                       workdir=workdir))
-    f.addStep(Test(command=[make, "check"],
-                   env={'LANG': 'C'},
-                   maxTime=2400,
-                   workdir=workdir))
+    if runtests:
+        f.addStep(Test(command=[make, "check"],
+                       env={'LANG': 'C'},
+                       maxTime=2400,
+                       workdir=workdir))
     return f
 
 f_default = create_build_factory("git://git.qemu-project.org/qemu.git")