创建空结果xml时,设置模块的默认结果为Unavailable

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-10-26 18:07:33 +08:00
parent 8a33da5e28
commit e7fbf38995

View File

@ -445,8 +445,8 @@ def check_result_report(report_root_dir, report_file, error_message="",
suite_result.stacktrace = error_message
if module_name:
suite_name = module_name
# 设置测试结果,默认结果是Blocked
result_kind = kwargs.get("result_kind", CaseResult.blocked)
# 设置测试结果,默认结果是Unavailable
result_kind = kwargs.get("result_kind", CaseResult.unavailable)
suite_reporter = SuiteReporter(
[(suite_result, [])], suite_name, result_dir,
modulename=module_name, message=error_message, result_kind=result_kind)