Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Albano
LLVM bpEVL
Commits
2345dbbd
Commit
2345dbbd
authored
7 years ago
by
Reid Kleckner
Browse files
Options
Downloads
Patches
Plain Diff
[lit] Attempt to fix Python unittest adaptor logic
llvm-svn: 309071
parent
36be14cb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/utils/lit/lit/run.py
+6
-7
6 additions, 7 deletions
llvm/utils/lit/lit/run.py
with
6 additions
and
7 deletions
llvm/utils/lit/lit/run.py
+
6
−
7
View file @
2345dbbd
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment