Skip to content

Commit

Permalink
Fix failed testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuan-ms committed Jun 13, 2024
1 parent bc31b40 commit 8ba6790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testplan/testing/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ def _run_resource_hook(
testcase_name=hook_name,
testcase_report=case_report,
)
case_report.pass_if_empty()
try:
interface.check_signature(hook, ["env", "result"])
hook_args = (runtime_env, case_result)
Expand All @@ -709,7 +710,6 @@ def _run_resource_hook(
if self.get_stdout_style(case_report.passed).display_testcase:
self.log_testcase_status(case_report)

case_report.pass_if_empty()
pattern = ":".join([self.name, suite_name, hook_name])
self._xfail(pattern, case_report)
case_report.runtime_status = RuntimeStatus.FINISHED
Expand Down

0 comments on commit 8ba6790

Please sign in to comment.