Check that all po/pot files are valid
Perform minimal checks on po and pot files so that no broken files can get imported. Change-Id: Ic39d68106259a225fa5e5399123063e7c35ba150 Co-Authored-By: Clark Boylan <clark.boylan@gmail.com> Related-Bug: #1299349
This commit is contained in:
parent
01f4660a7c
commit
9e9dc87d3f
6
tox.ini
6
tox.ini
@ -7,6 +7,7 @@ skipsdist = True
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals = bash
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
@ -15,7 +16,10 @@ commands = {posargs}
|
||||
commands = openstack-doc-test --check-niceness {posargs}
|
||||
|
||||
[testenv:checksyntax]
|
||||
commands = openstack-doc-test --check-syntax {posargs}
|
||||
commands =
|
||||
openstack-doc-test --check-syntax {posargs}
|
||||
# Check that .po and .pot files are valid:
|
||||
bash -c "find doc -type f -regex '.*\.pot?' -print0|xargs --null -n 1 msgfmt --check-format -o /dev/null"
|
||||
|
||||
[testenv:checkdeletions]
|
||||
commands = openstack-doc-test --check-deletions {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user