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):
self.processes = int(self.processes)
if self.randomize is None:
self.randomize = False
self.randomize = self.root == 'lms'
if self.processes != 0 and self.verbosity > 1:
print colorize(
......@@ -158,9 +158,12 @@ class SystemTestSuite(NoseTestSuite):
self.extra_args,
'--with-xunitmp',
'--xunitmp-file={}'.format(self.report_dir / "nosetests.xml"),
'--processes={}'.format(self.processes),
'--with-database-isolation',
]
if self.processes != 0:
cmd.append('--processes={}'.format(self.processes))
if self.randomize:
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