From 9f179a6e69211dcc832d5b03bac848ba2e523dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Wed, 25 Oct 2017 16:59:41 +0200 Subject: [PATCH] Consider exit code 2 (form --help) as success --- buildbot/master.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 70bc1a7..92b7fca 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -2,6 +2,7 @@ # ex: set filetype=python: from buildbot.plugins import * +from buildbot.process.results import SUCCESS from buildbot.process.properties import Property # This is a sample buildmaster config file. It must be installed as @@ -94,8 +95,8 @@ qgis_install_factory.addStep(steps.ShellCommand(command=["/usr/bin/sudo", "dnf", qgis_install_factory.addStep(steps.ShellCommand(command=["/usr/bin/sudo", "dnf", "install", "--refresh", "-y", "qgis", "python3-qgis", "qgis-server", "qgis-grass"], name="Run DNF")) -qgis_install_factory.addStep(steps.ShellCommand(command=["/usr/bin/qgis", "--help", "|| true"], - name="Run QGIS")) +qgis_install_factory.addStep(steps.ShellCommand(command=["/usr/bin/qgis", "--help"], + name="Run QGIS", decodeRC={0:SUCCESS, 2:SUCCESS})) # th_factory = util.BuildFactory() # dummy