From c9ef422fd6b9988fd9801028d7afaccc99bc6069 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 18 Sep 2019 12:28:44 -0400 Subject: [PATCH] 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 --- teuthology/describe_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/describe_tests.py b/teuthology/describe_tests.py index f43e14807f..f0a2e17698 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 = '└── ' -- 2.39.5