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

Merge pull request !303 from liguangjie/master
This commit is contained in:
openharmony_ci 2024-10-28 01:43:47 +00:00 committed by Gitee
commit 81022e4750
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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)