diff options
author | Reid Kleckner <rnk@google.com> | 2017-07-26 01:27:18 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-07-26 01:27:18 +0000 |
commit | 2345dbbd546a1151f75a4be47f0b1b09506cf578 (patch) | |
tree | 98e9d7deefdb22079ff1c42b3af0a390079a20f8 /llvm/utils/lit | |
parent | 36be14cbfea5607de14cdbd3785d8de7e89a4ce5 (diff) | |
download | bcm5719-llvm-2345dbbd546a1151f75a4be47f0b1b09506cf578.tar.gz bcm5719-llvm-2345dbbd546a1151f75a4be47f0b1b09506cf578.zip |
[lit] Attempt to fix Python unittest adaptor logic
llvm-svn: 309071
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r-- | llvm/utils/lit/lit/run.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/utils/lit/lit/run.py b/llvm/utils/lit/lit/run.py index 1290c142c83..3e39bdb9220 100644 --- a/llvm/utils/lit/lit/run.py +++ b/llvm/utils/lit/lit/run.py @@ -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): |