Commit 226da7d3 by Calen Pennington

Make LMS tests run concurrently

parent 5249504e
...@@ -120,12 +120,13 @@ class SystemTestSuite(NoseTestSuite): ...@@ -120,12 +120,13 @@ class SystemTestSuite(NoseTestSuite):
def cmd(self): def cmd(self):
cmd = ( cmd = (
'./manage.py {system} test --verbosity={verbosity} ' './manage.py {system} test --verbosity={verbosity} '
'{test_id} {test_opts} --settings=test {extra} ' '{test_id} {test_opts} --settings=test {system_opts} {extra} '
'--with-xunitmp --xunitmp-file={xunit_report}'.format( '--with-xunitmp --xunitmp-file={xunit_report}'.format(
system=self.root, system=self.root,
verbosity=self.verbosity, verbosity=self.verbosity,
test_id=self.test_id, test_id=self.test_id,
test_opts=self.test_options_flags, test_opts=self.test_options_flags,
system_opts=self._system_options,
extra=self.extra_args, extra=self.extra_args,
xunit_report=self.report_dir / "nosetests.xml", xunit_report=self.report_dir / "nosetests.xml",
) )
...@@ -134,6 +135,16 @@ class SystemTestSuite(NoseTestSuite): ...@@ -134,6 +135,16 @@ class SystemTestSuite(NoseTestSuite):
return self._under_coverage_cmd(cmd) return self._under_coverage_cmd(cmd)
@property @property
def _system_options(self):
"""
Test arguments that are only enabled for specific systems.
"""
if self.root == 'lms':
return '--with-randomly --with-database-isolation --processes=-1'
return ''
@property
def _default_test_id(self): def _default_test_id(self):
""" """
If no test id is provided, we need to limit the test runner If no test id is provided, we need to limit the test runner
......
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