Skip to content

Commit

Permalink
put report back in
Browse files Browse the repository at this point in the history
  • Loading branch information
clnoll committed Apr 28, 2024
1 parent a12acb7 commit 83d34c2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -390,20 +390,20 @@ async def _run(self, connector_under_test_container: Container) -> StepResult:
regression_tests_artifacts_dir = str(self.regression_tests_artifacts_dir)

path_to_report = f"{regression_tests_artifacts_dir}/session_{self.run_id}/report.html"
# await container.file(path_to_report).export(path_to_report)
await container.file(path_to_report).export(path_to_report)

exit_code, stdout, stderr = await get_exec_result(container)

# with open(path_to_report, "r") as fp:
# regression_test_report = fp.read()
with open(path_to_report, "r") as fp:
regression_test_report = fp.read()

return StepResult(
step=self,
status=self.get_step_status_from_exit_code(exit_code),
stderr=stderr,
stdout=stdout,
output=container,
# report=regression_test_report,
report=regression_test_report,
)

async def _build_regression_test_container(self, target_container_id: str) -> Container:

0 comments on commit 83d34c2

Please sign in to comment.