Commit 9ba70484 by Calen Pennington

Merge pull request #12528 from cpennington/enable-randomization-in-lms-tests

Enable randomization (but not concurrency) in LMS unit tests
parents cfd16207 2afc9e8c
...@@ -133,7 +133,7 @@ class SystemTestSuite(NoseTestSuite): ...@@ -133,7 +133,7 @@ class SystemTestSuite(NoseTestSuite):
self.processes = int(self.processes) self.processes = int(self.processes)
if self.randomize is None: if self.randomize is None:
self.randomize = False self.randomize = self.root == 'lms'
if self.processes != 0 and self.verbosity > 1: if self.processes != 0 and self.verbosity > 1:
print colorize( print colorize(
...@@ -158,9 +158,12 @@ class SystemTestSuite(NoseTestSuite): ...@@ -158,9 +158,12 @@ class SystemTestSuite(NoseTestSuite):
self.extra_args, self.extra_args,
'--with-xunitmp', '--with-xunitmp',
'--xunitmp-file={}'.format(self.report_dir / "nosetests.xml"), '--xunitmp-file={}'.format(self.report_dir / "nosetests.xml"),
'--processes={}'.format(self.processes),
'--with-database-isolation', '--with-database-isolation',
] ]
if self.processes != 0:
cmd.append('--processes={}'.format(self.processes))
if self.randomize: if self.randomize:
cmd.append('--with-randomly') cmd.append('--with-randomly')
......
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