]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: ensure that convolutions are cycled out to satisfy mincyclicity
authorSamuel Just <sjust@redhat.com>
Tue, 24 Nov 2015 16:18:58 +0000 (08:18 -0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 1 Feb 2016 05:07:38 +0000 (12:07 +0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
teuthology/suite.py

index 722ff96d3822379446800b362b73f89395223ff8..4a865115d8c90e391ec4fcfdbe08c57f0a54652d 100644 (file)
@@ -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 = []