From: Jeff Layton Date: Wed, 18 Sep 2019 16:28:44 +0000 (-0400) Subject: describe_tests: skip over hidden directories X-Git-Tag: 1.1.0~226^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9ef422fd6b9988fd9801028d7afaccc99bc6069;p=teuthology.git describe_tests: skip over hidden directories 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 --- diff --git a/teuthology/describe_tests.py b/teuthology/describe_tests.py index f43e14807..f0a2e1769 100644 --- a/teuthology/describe_tests.py +++ b/teuthology/describe_tests.py @@ -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 = '└── '