From 02c5522bf8efff8e2df8ad3cc76c8cfe5793ff53 Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.de>
Date: Mon, 31 Mar 2014 22:17:18 +0200
Subject: [PATCH] Fix Jenkins translation jobs

The job neutron-propose-translation-update
does not update from
transifex since our po files contain duplicate entries where
obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the job.

Add test to pep8 that checks that no new breakages get
introduced.

Change-Id: I9c680eeefecfa124c5b2900b7fa7a0a8f7e8ebd6
Closes-Bug: #1299349
---
 tox.ini | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tox.ini b/tox.ini
index 16e442f0f..13fe8dad5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,6 +17,7 @@ commands =
 setenv = OS_TEST_PATH=./neutron/tests/functional
 commands =
   python setup.py testr --slowest --testr-args='{posargs}'
+whitelist_externals = bash
 
 [tox:jenkins]
 sitepackages = True
@@ -26,6 +27,7 @@ downloadcache = ~/cache/pip
 commands =
   flake8
   neutron-db-manage check_migration
+  bash -c "find neutron -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
 
 [testenv:i18n]
 commands = python ./tools/check_i18n.py ./neutron ./tools/i18n_cfg.py