ci(pytest): refactor panic test to pytest

This commit is contained in:
Fu Hanxi
2022-02-11 14:58:50 +08:00
parent 4f0393b0d1
commit 1b095db5c9
8 changed files with 573 additions and 861 deletions

View File

@@ -61,6 +61,11 @@ def config(request: FixtureRequest) -> str:
return getattr(request, 'param', None) or DEFAULT_SDKCONFIG
@pytest.fixture
def test_func_name(request: FixtureRequest) -> str:
return request.node.function.__name__ # type: ignore
@pytest.fixture
def test_case_name(request: FixtureRequest, target: str, config: str) -> str:
return format_case_id(target, config, request.node.originalname)
@@ -110,7 +115,7 @@ def build_dir(
return check_dir
logging.warning(
f'checking binary path: {binary_path}... missing... try another place'
'checking binary path: %s... missing... try another place', binary_path
)
recommend_place = check_dirs[0]