suite: fix build_matrix for + case

The + means we should concatenate everything in the directory.  Do that.

This was totally broken before (and unused until now).

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-03-06 17:55:00 -08:00
parent 57259b54be
commit 94d73bd411

View File

@ -160,13 +160,14 @@ def build_matrix(path):
if '+' in files:
# concatenate items
files.remove('+')
out = []
raw = []
for fn in files:
out.extend(build_matrix(os.path.join(path, fn)))
return [(
'+',
[a[1] for a in out]
)]
raw.extend(build_matrix(os.path.join(path, fn)))
out = [(
'{' + ' '.join(files) + '}',
[a[1][0] for a in raw]
)]
return out
elif '%' in files:
# convolve items
files.remove('%')