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: Ifff7936988d2eee05072eb4d76b0e3a678c3d476
Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Related-Bug: #1299349
This commit is contained in:
Andreas Jaeger 2014-03-31 22:43:36 +02:00
parent 0d1707e247
commit 8e07ceb89c

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 api* -type f -regex '.*\.pot?' -print0|xargs --null -n 1 msgfmt --check-format -o /dev/null"
[testenv:checkdeletions]
commands = openstack-doc-test --check-deletions {posargs}