Ignore rootfs (#3097)

This commit is contained in:
Joakim Sørensen 2021-09-01 13:58:48 +02:00 committed by GitHub
parent 966b962ccf
commit ab704c11cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -93,7 +93,11 @@ class StoreData(CoreSysAttributes):
addon_list = [ addon_list = [
addon addon
for addon in path.glob("**/config.*") for addon in path.glob("**/config.*")
if not [part for part in addon.parts if part.startswith(".")] if not [
part
for part in addon.parts
if part.startswith(".") or part == "rootfs"
]
and addon.suffix in FILE_SUFFIX_CONFIGURATION and addon.suffix in FILE_SUFFIX_CONFIGURATION
] ]
except OSError as err: except OSError as err:

View File

@ -15,6 +15,7 @@ def test_read_addon_files(coresys: CoreSys):
Path("somepath/.git/config.yml"), Path("somepath/.git/config.yml"),
Path("somepath/deeper_in_the_structure/.github/config.yml"), Path("somepath/deeper_in_the_structure/.github/config.yml"),
Path(".github/config.yml"), Path(".github/config.yml"),
Path("some/rootfs/config.yml"),
Path(".circleci/config.yml"), Path(".circleci/config.yml"),
], ],
): ):