aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2023-03-10 23:35:27 +0100
committerMagnus Granberg <zorry@gentoo.org>2023-03-10 23:35:27 +0100
commitfe31d987a48588a27ded9bb0c1f0b49c69f273a8 (patch)
tree0da4efc3bef137c00813ceb968b489fdad9757e1 /buildbot_gentoo_ci/steps/version.py
parentDownload docker images befor build (diff)
downloadtinderbox-cluster-fe31d987a48588a27ded9bb0c1f0b49c69f273a8.tar.gz
tinderbox-cluster-fe31d987a48588a27ded9bb0c1f0b49c69f273a8.tar.bz2
tinderbox-cluster-fe31d987a48588a27ded9bb0c1f0b49c69f273a8.zip
Add CheckEAPI
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'buildbot_gentoo_ci/steps/version.py')
-rw-r--r--buildbot_gentoo_ci/steps/version.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/buildbot_gentoo_ci/steps/version.py b/buildbot_gentoo_ci/steps/version.py
index 59d19dc..c6f333e 100644
--- a/buildbot_gentoo_ci/steps/version.py
+++ b/buildbot_gentoo_ci/steps/version.py
@@ -409,6 +409,35 @@ class SetupPropertys(BuildStep):
self.setProperty("version", self.version, 'version')
return SUCCESS
+class CheckEAPI(BuildStep):
+
+ name = 'CheckEAPI'
+ description = 'Running'
+ descriptionDone = 'Ran'
+ descriptionSuffix = None
+ haltOnFailure = True
+ flunkOnFailure = True
+
+ def __init__(self, **kwargs):
+ super().__init__(**kwargs)
+
+ #@defer.inlineCallbacks
+ def run(self):
+ # Run head 30 if we did't find it on head 10
+ if self.getProperty("eapi"):
+ return SKIPPED
+ self.build.addStepsAfterCurrentStep([
+ steps.SetPropertyFromCommand(
+ name = 'RunGetEAPI',
+ haltOnFailure = True,
+ flunkOnFailure = True,
+ command=['head', '-n','30', self.getProperty("ebuild_file")],
+ strip=False,
+ extract_fn=PersOutputOfGetEapi
+ )
+ ])
+ return SUCCESS
+
class SetupStepsForCheckV(BuildStep):
name = 'Setup steps for Checking V'
@@ -441,10 +470,11 @@ class SetupStepsForCheckV(BuildStep):
name = 'RunGetEAPI',
haltOnFailure = True,
flunkOnFailure = True,
- command=['head', '-n', '15', self.getProperty("ebuild_file")],
+ command=['head', '-n', '10', self.getProperty("ebuild_file")],
strip=False,
extract_fn=PersOutputOfGetEapi
))
+ addStepVData.append(CheckEAPI())
addStepVData.append(steps.SetPropertyFromCommand(
name = 'GetPythonVersion',
haltOnFailure = True,