[Test] Cleanup for helpers (#6523)

Signed-off-by: wangyu <410167048@qq.com>
Signed-off-by: [Your Name] <your.email@example.com>
Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
wangyuandamy-why-3459 authored and GitHub committed 2026-08-25 09:10:17 +08:00
1 parent 8360346a66
commit 4af0ddc1c2
140 files changed
+4121 -4194

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Omni sleep mode: entrypoint-level VRAM/ACK tests plus multi-stage e2e.
@@ -152,13 +152,13 @@ def _build_llm_stages() -> tuple[list[dict], list[dict]]:
@pytest.fixture(scope="module", autouse=True)
def _module_device_cleanup():
"""One device cleanup pass around the module (engines are class-scoped)."""
from tests.helpers.env import run_post_test_cleanup, run_pre_test_cleanup
from tests.helpers.clean import cleanup_test_environment
print("\n=== PRE-MODULE DEVICE CLEANUP (sleep_mode) ===")
run_pre_test_cleanup()
cleanup_test_environment()
yield
print("\n=== POST-MODULE DEVICE CLEANUP (sleep_mode) ===")
run_post_test_cleanup()
cleanup_test_environment()
@pytest_asyncio.fixture(scope="class", loop_scope="class")