Commit 4cb8f58b by Ned Batchelder

Quiet mongoimport noise during tests

parent 77a796e2
...@@ -69,10 +69,17 @@ class SplitModuleTest(unittest.TestCase): ...@@ -69,10 +69,17 @@ class SplitModuleTest(unittest.TestCase):
collection_prefix + collection, '--jsonArray', collection_prefix + collection, '--jsonArray',
'--file', '--file',
SplitModuleTest.COMMON_ROOT + '/test/data/splitmongo_json/' + collection + '.json' SplitModuleTest.COMMON_ROOT + '/test/data/splitmongo_json/' + collection + '.json'
]) ],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
for collection in ('active_versions', 'structures', 'definitions')] for collection in ('active_versions', 'structures', 'definitions')]
for p in processes: for p in processes:
if p.wait() != 0: stdout, stderr = p.communicate()
if p.returncode != 0:
print "Couldn't run mongoimport:"
print stdout
print stderr
raise Exception("DB did not init correctly") raise Exception("DB did not init correctly")
@classmethod @classmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment