mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
chore: update sanity test ignore generation
This commit is contained in:
parent
bb26511367
commit
df5783c489
6 changed files with 24 additions and 0 deletions
18
tests/sanity/generate-ignore.sh
Executable file
18
tests/sanity/generate-ignore.sh
Executable 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"
|
3
tests/sanity/ignore-2.16.txt
Normal file
3
tests/sanity/ignore-2.16.txt
Normal 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
|
1
tests/sanity/ignore-lookup.template
Normal file
1
tests/sanity/ignore-lookup.template
Normal file
|
@ -0,0 +1 @@
|
||||||
|
validate-modules:missing-gplv3-license # ignore license check
|
0
tests/sanity/ignore-module_utils.template
Normal file
0
tests/sanity/ignore-module_utils.template
Normal file
1
tests/sanity/ignore-modules.template
Normal file
1
tests/sanity/ignore-modules.template
Normal file
|
@ -0,0 +1 @@
|
||||||
|
validate-modules:missing-gplv3-license # ignore license check
|
1
tests/sanity/ignore.extra
Normal file
1
tests/sanity/ignore.extra
Normal file
|
@ -0,0 +1 @@
|
||||||
|
roles/lego/templates/metrics-textfile.py.j2 shebang
|
Loading…
Reference in a new issue