have list-deliverables --no-stable-branch skip tempest repos

Tempest and its plugins do not branch, so we should not list them when
asking which repos have not yet branched.

Change-Id: I1ebc933b613d8e267392aa8931252f762ad338fa
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-08-31 10:30:10 -04:00
parent 1062de89d7
commit e2c8bab35e
2 changed files with 13 additions and 0 deletions

View File

@ -199,6 +199,10 @@ def main():
if args.type and deliv.type not in args.type:
continue
if args.no_stable_branch:
if deliv.is_branchless:
continue
if deliv.name == 'release-test':
continue
if deliv.get_branch_location('stable/' + series) is not None:
continue
if args.unreleased and (deliv.is_released or not deliv.is_releasable):

View File

@ -477,6 +477,15 @@ class Deliverable(object):
def is_milestone_based(self):
return self.model == 'cycle-with-milestones'
@property
def is_branchless(self):
# Tempest plugins do not branch.
if self.type == 'tempest-plugin':
return True
if self.name == 'tempest':
return True
return False
@property
def type(self):
if 'tempest-plugin' in self.name: