From 41870b6e553572ff29965efc417509468995090d Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 31 Mar 2014 21:39:28 +0200 Subject: [PATCH] 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: Ib438faddb362eb8e61eaa64a870160196f16c594 Related-Bug: #1299349 Co-Authored-By: Clark Boylan --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index c0b5ffdbfa..16d24d29f8 100644 --- a/tox.ini +++ b/tox.ini @@ -12,12 +12,16 @@ deps = -r{toxinidir}/requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' +whitelist_externals = bash + [testenv:pep8] commands = flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib # disable check_uptodate until a resolution is found to bug #1288586 #{toxinidir}/tools/config/check_uptodate.sh {toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt + # Check that .po and .pot files are valid: + bash -c "find heat -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" [testenv:venv] commands = {posargs}