From 0dc74a6fe06601536204e0221d1a22c38fbb29e6 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 24 Nov 2015 08:18:58 -0800 Subject: [PATCH] suite: ensure that convolutions are cycled out to satisfy mincyclicity Signed-off-by: Samuel Just --- teuthology/suite.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/teuthology/suite.py b/teuthology/suite.py index 722ff96d38..4a865115d8 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -1018,7 +1018,12 @@ def _build_matrix(path, _isfile=os.path.isfile, item=fn) if submat is not None: submats.append(submat) - return matrix.Product(item, submats) + mat = matrix.Product(item, submats) + if mat and mat.cyclicity() < mincyclicity: + mat = matrix.Cycle( + (mincyclicity + mat.cyclicity() - 1) / mat.cyclicity(), + mat) + return mat else: # list items submats = [] -- 2.39.5