From 79bd9b4525bee0aa407c766847b6f14bc36a61d3 Mon Sep 17 00:00:00 2001 From: Evgeniy Zayats Date: Wed, 23 Oct 2024 10:46:00 -0400 Subject: [PATCH] env: handle error during s3 gw deployment Signed-off-by: Evgeniy Zayats --- neofs-testlib/neofs_testlib/env/env.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neofs-testlib/neofs_testlib/env/env.py b/neofs-testlib/neofs_testlib/env/env.py index b1c36801d..a49958f3e 100644 --- a/neofs-testlib/neofs_testlib/env/env.py +++ b/neofs-testlib/neofs_testlib/env/env.py @@ -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):