]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
describe_tests: skip over hidden directories 1309/head
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Sep 2019 16:28:44 +0000 (12:28 -0400)
committerJeff Layton <jlayton@kernel.org>
Thu, 19 Sep 2019 14:43:11 +0000 (10:43 -0400)
The ceph/qa directory has a bunch of .qa symlinks under it that cause
teuthology-describe-tests to hit symlink loops. Just skip any dentry
with a name that starts with '.'.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
teuthology/describe_tests.py

index f43e14807fd6ffd2d17d039a4d77ce58484054eb..f0a2e17698ab62d28983a6619ba0738f46cc8b7c 100644 (file)
@@ -243,6 +243,9 @@ def tree_with_info(cur_dir, fields, include_facet, prefix, rows,
     has_yamls = any([x.endswith('.yaml') for x in files])
     facet = os.path.basename(cur_dir) if has_yamls else ''
     for i, f in enumerate(files):
+        # skip any hidden files
+        if f.startswith('.'):
+            continue
         path = os.path.join(cur_dir, f)
         if i == len(files) - 1:
             file_pad = '└── '