Skip to content

Commit

Permalink
env: handle error during s3 gw deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
  • Loading branch information
Evgeniy Zayats committed Oct 23, 2024
1 parent 394868e commit 79bd9b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,12 @@ def start(self, fresh=True):
self._generate_config()
logger.info(f"Launching S3 GW: {self}")
self._launch_process()
self._wait_until_ready()
try:
self._wait_until_ready()
except Exception as e:
allure.attach.file(self.stderr, name="s3 gw stderr", extension="txt")
allure.attach.file(self.stdout, name="s3 gw stdout", extension="txt")
raise e

@allure.step("Stop s3 gw")
def stop(self):
Expand Down

0 comments on commit 79bd9b4

Please sign in to comment.