summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2014-03-31 20:42:46 +0200
committerAndreas Jaeger <aj@suse.de>2014-03-31 21:45:10 +0200
commit5d363dc9c449a60f5a9fd5f06e8b541803dd17f5 (patch)
tree72881b4fff37de3ce3efafee9cdb2be6adc210d4
parentbe802d9e9f42a2a1219338cfe0ffc7fcee8a0ea1 (diff)
downloadironic-5d363dc9c449a60f5a9fd5f06e8b541803dd17f5.tar.gz
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: I328fc11c688c16737ae88984e4778483ce5db5ab Co-Authored-By: Clark Boylan <clark.boylan@gmail.com> Related-Bug: #1298645
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index aa5e070d6..65d647a24 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,6 +12,8 @@ deps = -r{toxinidir}/requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
+whitelist_externals = bash
+
[tox:jenkins]
downloadcache = ~/cache/pip
@@ -19,6 +21,8 @@ downloadcache = ~/cache/pip
commands =
flake8 {posargs}
{toxinidir}/tools/config/check_uptodate.sh
+ # Check that .po and .pot files are valid:
+ bash -c "find ironic -type f -regex '.*\.pot?' -print0|xargs --null -n 1 msgfmt --check-format -o /dev/null"
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}