i18n tests run better: no subprocess output, and no duplication of tests.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user