Skip to content

Commit

Permalink
env: attach logs in case of IR deployment failure (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Jun 14, 2024
2 parents c154120 + dcb64b5 commit b581cef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ def deploy_inner_ring_nodes(self, count=1):
with allure.step("Wait until all IR nodes are READY"):
for ir_node in self.inner_ring_nodes:
logger.info(f"Wait until IR: {ir_node} is READY")
ir_node._wait_until_ready()
try:
ir_node._wait_until_ready()
except Exception as e:
allure.attach.file(ir_node.stderr, name="ir node logs", extension="txt")
raise e

@allure.step("Deploy storage node")
def deploy_storage_nodes(self, count=1, node_attrs: Optional[dict] = None):
Expand Down

0 comments on commit b581cef

Please sign in to comment.