]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: return [] for build_matrix base case
authorSage Weil <sage@inktank.com>
Thu, 29 Aug 2013 04:53:41 +0000 (21:53 -0700)
committerSage Weil <sage@inktank.com>
Thu, 29 Aug 2013 04:53:41 +0000 (21:53 -0700)
This gives us an empty list instead of a crash on an empty dir
or bad symlink

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/suite.py

index 2a69ad93441c49cf4951a73c91055985ce39b2e0..e6534f8b8addcdbf2309d4841af103e3dd995194 100644 (file)
@@ -260,6 +260,7 @@ def build_matrix(path):
                 raw = build_matrix(os.path.join(path, fn))
                 out.extend([(combine_path(fn, item[0]), item[1]) for item in raw])
             return out
+    return []
 
 def ls():
     parser = argparse.ArgumentParser(description='List teuthology job results')