From 9a7338e5cb980d32399fdbdfc9fdac3adf225aaf Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Thu, 20 Nov 2014 16:55:21 -0500 Subject: [PATCH] Remove 'eo' artifacts when doing common/lib test runs --- .gitignore | 2 ++ pavelib/i18n.py | 2 ++ pavelib/tests.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index ef5145850a..404a435482 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,8 @@ conf/locale/en/LC_MESSAGES/*.po conf/locale/en/LC_MESSAGES/*.mo conf/locale/fake*/LC_MESSAGES/*.po conf/locale/fake*/LC_MESSAGES/*.mo +conf/locale/eo/LC_MESSAGES/*.po +conf/locale/eo/LC_MESSAGES/*.mo conf/locale/messages.mo ### Testing artifacts diff --git a/pavelib/i18n.py b/pavelib/i18n.py index c3dfaf2862..158b05f41c 100644 --- a/pavelib/i18n.py +++ b/pavelib/i18n.py @@ -191,6 +191,8 @@ def i18n_robot_pull(): if con.lower() == 'y': sh('git add conf/locale') + # Explicitly add dummy translations + sh('git add -f conf/locale/eo/') sh( 'git commit --message="Update translations ' diff --git a/pavelib/tests.py b/pavelib/tests.py index b9734e99a7..d6006cb1ad 100644 --- a/pavelib/tests.py +++ b/pavelib/tests.py @@ -103,6 +103,9 @@ def test_lib(options): test_suite = suites.PythonTestSuite('python tests', subsuites=lib_tests, **opts) test_suite.run() + # Clear the Esperanto directory of any test artifacts + sh('git checkout conf/locale/eo') + @task @needs(