From 7caaf994fa2cf79159dcfd41aa612437d8c31bb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibaut=20VAR=C3=88NE?= Date: Tue, 25 Oct 2022 15:41:06 +0200 Subject: [PATCH] phase1: hide/skip ccache steps if not available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thibaut VARÈNE --- phase1/master.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.30.2