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: I9b5edbad9f4302ca24e4255f503ee2db45ebd5d7
Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Related-Bug: #1299349
This commit is contained in:
Andreas Jaeger 2014-03-31 22:45:07 +02:00
parent 82beb9ed03
commit 6c24c72de4
1 changed files with 5 additions and 1 deletions

View File

@ -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}