chore: update sanity test ignore generation

This commit is contained in:
Jan Christian Grünhage 2023-12-12 10:50:59 +01:00
parent bb26511367
commit df5783c489
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
6 changed files with 24 additions and 0 deletions

18
tests/sanity/generate-ignore.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
cat ignore.extra
cd ../../
generate() {
while read -r line; do
find plugins \
\( "$@" \) \
-name "*.py" \
! -name "__init__.py" \
-printf "%p ${line//[%\\]/&&}\n" \
| sort
done
}
generate -path "plugins/modules/*" <"tests/sanity/ignore-modules.template"
generate -path "plugins/lookup/*" <"tests/sanity/ignore-lookup.template"
generate -path "plugins/module_utils/*" <"tests/sanity/ignore-module_utils.template"

View file

@ -0,0 +1,3 @@
roles/lego/templates/metrics-textfile.py.j2 shebang
plugins/modules/gpg_secretstore.py validate-modules:missing-gplv3-license # ignore license check
plugins/lookup/gpg_secretstore.py validate-modules:missing-gplv3-license # ignore license check

View file

@ -0,0 +1 @@
validate-modules:missing-gplv3-license # ignore license check

View file

@ -0,0 +1 @@
validate-modules:missing-gplv3-license # ignore license check

View file

@ -0,0 +1 @@
roles/lego/templates/metrics-textfile.py.j2 shebang