diff --git a/pavelib/utils/test/suites/nose_suite.py b/pavelib/utils/test/suites/nose_suite.py index 533416a668f25c82152dfb60ef40d6de3ef04a2b..61d22255526f6c1e523e1e02f97837b6c8ae4b91 100644 --- a/pavelib/utils/test/suites/nose_suite.py +++ b/pavelib/utils/test/suites/nose_suite.py @@ -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')