diff --git a/i18n/execute.py b/i18n/execute.py index 8a2cb0911c..cab07279a3 100644 --- a/i18n/execute.py +++ b/i18n/execute.py @@ -11,7 +11,7 @@ def execute(command, working_directory=BASE_DIR): Output is ignored. """ LOG.info(command) - subprocess.call(command.split(' '), cwd=working_directory) + subprocess.check_output(command.split(' '), cwd=working_directory, stderr=subprocess.STDOUT) def call(command, working_directory=BASE_DIR): diff --git a/i18n/tests/__init__.py b/i18n/tests/__init__.py index ee6283376e..e69de29bb2 100644 --- a/i18n/tests/__init__.py +++ b/i18n/tests/__init__.py @@ -1,6 +0,0 @@ -from test_config import TestConfiguration -from test_extract import TestExtract -from test_generate import TestGenerate -from test_converter import TestConverter -from test_dummy import TestDummy -import test_validate diff --git a/i18n/tests/test_validate.py b/i18n/tests/test_validate.py index e22d4e47a1..2876f1c2f8 100644 --- a/i18n/tests/test_validate.py +++ b/i18n/tests/test_validate.py @@ -24,11 +24,8 @@ def validate_po_file(filename, log): Call GNU msgfmt -c on each .po file to validate its format. Any errors caught by msgfmt are logged to log. """ - # Skip this test for now because it's very noisy - raise SkipTest() # Use relative paths to make output less noisy. rfile = os.path.relpath(filename, LOCALE_DIR) (out, err) = call(['msgfmt','-c', rfile], working_directory=LOCALE_DIR) if err != '': log.warn('\n'+err) -