From: Thibaut VARÈNE Date: Tue, 25 Oct 2022 13:41:06 +0000 (+0200) Subject: phase1: hide/skip ccache steps if not available X-Git-Tag: v2~27 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=7caaf994fa2cf79159dcfd41aa612437d8c31bb9;p=buildbot.git phase1: hide/skip ccache steps if not available Signed-off-by: Thibaut VARÈNE --- diff --git a/phase1/master.cfg b/phase1/master.cfg index 52b2b8d..4c8156a 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -595,12 +595,14 @@ for target in targets: # see if ccache is available factory.addStep(SetPropertyFromCommand( + name = "ccache", property = "ccache_command", command = ["which", "ccache"], description = "Testing for ccache command", haltOnFailure = False, flunkOnFailure = False, warnOnFailure = False, + hideStepIf = lambda r, s: r==results.FAILURE, )) # Workaround bug when switching from a checked out tag back to a branch @@ -1129,7 +1131,7 @@ for target in targets: haltOnFailure = False, flunkOnFailure = False, warnOnFailure = False, - alwaysRun = True, + hideStepIf = lambda r, s: r==results.FAILURE, )) c['builders'].append(BuilderConfig(name=target, workernames=workerNames, factory=factory, nextBuild=GetNextBuild))