[buildbot] phase1: hide/skip ccache steps if not available
LEDE Commits
lede-commits at lists.infradead.org
Mon May 15 08:39:28 PDT 2023
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/7caaf994fa2cf79159dcfd41aa612437d8c31bb9
commit 7caaf994fa2cf79159dcfd41aa612437d8c31bb9
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Tue Oct 25 15:41:06 2022 +0200
phase1: hide/skip ccache steps if not available
Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
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))
More information about the lede-commits
mailing list