Escape use of % in tox.ini to avoid interpolation

Zuul-jobs tox roles wants to be able to run tox --showconfig -e linters.
Unfortunately our linters target has an unescaped % symbol in it which
causes python3 + tox to fail with an interpolation error. Escaping the %
to avoid interpolation addresses this.

Change-Id: I7e23595495909fc94a7ea5a9e461e67e25ddeae9
This commit is contained in:
Clark Boylan 2020-05-19 15:15:05 -07:00
parent 1bd14f4eea
commit e25845d8fa

View File

@ -40,7 +40,7 @@ commands =
# Ansible lint
bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
xargs -t -n1 -0 ansible-lint"
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%%p/\n" | \
xargs -t -n1 ansible-lint'
# Ansible Syntax Check
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \