]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: ignore empty directories
authorSamuel Just <sjust@redhat.com>
Wed, 13 May 2015 20:16:34 +0000 (13:16 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 13 May 2015 20:20:18 +0000 (13:20 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
teuthology/suite.py

index 3bb53c539d313ada5e41e8941b36c34b658e6ac7..bf2cf59505b2b65fbe9b56d3ed6bda0f069d7da8 100644 (file)
@@ -788,6 +788,8 @@ def _build_matrix(path, _isfile=os.path.isfile,
         if path.endswith('.disable'):
             return None
         files = sorted(_listdir(path))
+        if len(files) == 0:
+            return None
         if '+' in files:
             # concatenate items
             files.remove('+')