mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 905782 - Make the XPCShell harness treat running a single file as a sequential run. r=ted
This commit is contained in:
parent
c635f7144e
commit
bd3806fe7b
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user