[Build] Add build info (#1386)

Add static build_info py file to show soc and sleep mode info. It helps
to make the code clean and the error info will be more friendly for
users

This PR also added the unit test for vllm_ascend/utils.py

This PR also added the base test class for all ut in tests/ut/base.py

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-06-27 09:14:43 +08:00
committed by GitHub
parent c563a08f0a
commit 5968dff4e0
11 changed files with 388 additions and 66 deletions

12
tests/ut/base.py Normal file
View File

@@ -0,0 +1,12 @@
import unittest
from vllm_ascend.utils import adapt_patch
class TestBase(unittest.TestCase):
def setUp(self):
# adapt patch by default.
adapt_patch(True)
adapt_patch()
super().setUp()