mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
[lit] Attempt to fix Python unittest adaptor logic
llvm-svn: 309071
This commit is contained in:
parent
74ad3be7a0
commit
71abc9a263
@ -44,6 +44,12 @@ class Run(object):
|
||||
def __init__(self, lit_config, tests):
|
||||
self.lit_config = lit_config
|
||||
self.tests = tests
|
||||
# Set up semaphores to limit parallelism of certain classes of tests.
|
||||
# For example, some ASan tests require lots of virtual memory and run
|
||||
# faster with less parallelism on OS X.
|
||||
self.parallelism_semaphores = \
|
||||
{k: multiprocessing.Semaphore(v) for k, v in
|
||||
self.lit_config.parallelism_groups.items()}
|
||||
|
||||
def execute_test(self, test):
|
||||
return _execute_test_impl(test, self.lit_config,
|
||||
@ -74,13 +80,6 @@ class Run(object):
|
||||
if not self.tests or jobs == 0:
|
||||
return
|
||||
|
||||
# Set up semaphores to limit parallelism of certain classes of tests.
|
||||
# For example, some ASan tests require lots of virtual memory and run
|
||||
# faster with less parallelism on OS X.
|
||||
self.parallelism_semaphores = \
|
||||
{k: multiprocessing.Semaphore(v) for k, v in
|
||||
self.lit_config.parallelism_groups.items()}
|
||||
|
||||
# Install a console-control signal handler on Windows.
|
||||
if win32api is not None:
|
||||
def console_ctrl_handler(type):
|
||||
|
Loading…
Reference in New Issue
Block a user