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:
Andreas Jaeger 2014-03-31 22:39:42 +02:00
parent 01f4660a7c
commit 9e9dc87d3f

View File

@ -7,6 +7,7 @@ skipsdist = True
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
@ -15,7 +16,10 @@ commands = {posargs}
commands = openstack-doc-test --check-niceness {posargs} commands = openstack-doc-test --check-niceness {posargs}
[testenv:checksyntax] [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] [testenv:checkdeletions]
commands = openstack-doc-test --check-deletions {posargs} commands = openstack-doc-test --check-deletions {posargs}