]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
build_matrix: ignore hidden files
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Jun 2018 19:21:41 +0000 (12:21 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Jun 2018 22:25:35 +0000 (15:25 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/suite/build_matrix.py

index e9692a8667bce474680c06189672d75e93667006..165711c1cd2de6da41dfb7454882e0e25d56cb47 100644 (file)
@@ -78,6 +78,8 @@ def _get_matrix(path, subset=None):
 
 
 def _build_matrix(path, mincyclicity=0, item=''):
+    if os.path.basename(path)[0] == '.':
+        return None
     if not os.path.exists(path):
         raise IOError('%s does not exist (abs %s)' % (path, os.path.abspath(path)))
     if os.path.isfile(path):