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

+ 4
- 0
tox.ini View File

@@ -12,12 +12,16 @@ deps = -r{toxinidir}/requirements.txt
12 12
 commands =
13 13
   python setup.py testr --slowest --testr-args='{posargs}'
14 14
 
15
+whitelist_externals = bash
16
+
15 17
 [testenv:pep8]
16 18
 commands =
17 19
     flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib
18 20
     # disable check_uptodate until a resolution is found to bug #1288586
19 21
     #{toxinidir}/tools/config/check_uptodate.sh
20 22
     {toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt
23
+    # Check that .po and .pot files are valid:
24
+    bash -c "find heat -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
21 25
 
22 26
 [testenv:venv]
23 27
 commands = {posargs}

Loading…
Cancel
Save