phase1: hide/skip ccache steps if not available
authorThibaut VARÈNE <hacks@slashdirt.org>
Tue, 25 Oct 2022 13:41:06 +0000 (15:41 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 15 May 2023 15:36:01 +0000 (17:36 +0200)
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
phase1/master.cfg

index 52b2b8d455ad00351b77d2bb43ac0e34c87f9666..4c8156a6ec9b998e9d30c44455656a9907f42adb 100644 (file)
@@ -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))