From 4a0a3f96680bd1bf2acde95e654e83022ace1197 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 31 Mar 2014 22:32:06 +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: I24e8543006830d0b0b1781bc2746b8eac700a971 Co-Authored-By: Clark Boylan Related-Bug: #1299349 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 890d15e..a9bbeda 100644 --- a/tox.ini +++ b/tox.ini @@ -13,6 +13,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args="{posargs}" +whitelist_externals = bash [testenv:integration] setenv = @@ -30,6 +31,8 @@ downloadcache = ~/cache/pip commands = flake8 {posargs} {toxinidir}/tools/config/check_uptodate.sh + # Check that .po and .pot files are valid: + bash -c "find sahara -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" [testenv:venv] commands = {posargs}