Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
44dcb52e
Unverified
Commit
44dcb52e
authored
Aug 03, 2024
by
youkaichao
Committed by
GitHub
Aug 03, 2024
Browse files
[ci][test] finalize fork_new_process_for_each_test (#7114)
parent
67d745cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/utils.py
tests/utils.py
+3
-0
No files found.
tests/utils.py
View file @
44dcb52e
...
@@ -360,6 +360,9 @@ def wait_for_gpu_memory_to_clear(devices: List[int],
...
@@ -360,6 +360,9 @@ def wait_for_gpu_memory_to_clear(devices: List[int],
def
fork_new_process_for_each_test
(
f
):
def
fork_new_process_for_each_test
(
f
):
"""Decorator to fork a new process for each test function.
See https://github.com/vllm-project/vllm/issues/7053 for more details.
"""
@
functools
.
wraps
(
f
)
@
functools
.
wraps
(
f
)
def
wrapper
(
*
args
,
**
kwargs
):
def
wrapper
(
*
args
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment