Bug 905782 - Make the XPCShell harness treat running a single file as a sequential run. r=ted

This commit is contained in:
Mihnea Dobrescu-Balaur 2013-08-20 16:07:33 -07:00
parent c635f7144e
commit bd3806fe7b
2 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class XPCShellRunner(MozbuildObject):
self.log_manager.disable_unstructured()
if not result and not sequential:
if not result and not xpcshell.sequential:
print("Tests were run in parallel. Try running with --sequential "
"to make sure the failures were not caused by this.")
return int(not result)

View File

@ -1122,6 +1122,8 @@ class XPCShellTests(object):
pStdout, pStderr = self.getPipes()
self.buildTestList()
if self.singleFile:
self.sequential = True
if shuffle:
random.shuffle(self.alltests)
@ -1185,7 +1187,7 @@ class XPCShellTests(object):
else:
tests_queue.append(test)
if sequential:
if self.sequential:
self.log.info("INFO | Running tests sequentially.")
else:
self.log.info("INFO | Using at most %d threads." % NUM_THREADS)