Fix passing warn_list parmeters to ansible-lint

These must be passed as multiple invocations of -w each with a single
role code, rather than a single -w and list of rule codes.

Change-Id: I60ba3c0d7b33d74533322493820b4bc15703f77f
This commit is contained in:
Jonathan Rosser 2020-10-01 11:44:43 +01:00
parent 2378e56655
commit 0ed48adea3
1 changed files with 2 additions and 2 deletions

View File

@ -51,6 +51,6 @@ fi
# Execute ansible-lint. We do not want to test dependent roles located
# in $HOME/.ansible/roles since we only care about the role we are currently
# testing.
ANSIBLE_LINT_WARNINGS="204,208,306,metadata"
ansible-lint ${ANSIBLE_LINT_PARAMS} -w ${ANSIBLE_LINT_WARNINGS} --exclude=$HOME/.ansible/roles \
ANSIBLE_LINT_WARNINGS="-w 204 -w 208 -w 306 -w metadata"
ansible-lint ${ANSIBLE_LINT_PARAMS} ${ANSIBLE_LINT_WARNINGS} --exclude=$HOME/.ansible/roles \
-R -r ${COMMON_TESTS_PATH}/ansible-lint/ ${TEST_PLAYBOOK}