Browse Source

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: I5dd0ca872fa25f8ef9557f039904090c4a672ff3
Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Related-Bug: #1299349
tags/2014.2.b1
Andreas Jaeger 5 years ago
parent
commit
8f5018eec7
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -13,6 +13,7 @@ deps = -r{toxinidir}/requirements.txt
13 13
 commands =
14 14
   python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}'
15 15
   {toxinidir}/tools/config/check_uptodate.sh
16
+whitelist_externals = bash
16 17
 
17 18
 [tox:jenkins]
18 19
 downloadcache = ~/cache/pip
@@ -21,6 +22,8 @@ downloadcache = ~/cache/pip
21 22
 commands =
22 23
   flake8 {posargs} . cinder/common
23 24
   flake8 --filename=cinder* bin
25
+  # Check that .po and .pot files are valid:
26
+  bash -c "find cinder -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
24 27
 
25 28
 [testenv:pylint]
26 29
 setenv = VIRTUAL_ENV={envdir}

Loading…
Cancel
Save