From 906dd28607b30d42fcfc6d7f2d7e36973805eeda Mon Sep 17 00:00:00 2001 From: Evgeniy Zayats Date: Thu, 30 May 2024 20:41:38 -0400 Subject: [PATCH] env: do not kill non existing processes Signed-off-by: Evgeniy Zayats --- neofs-testlib/neofs_testlib/env/env.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neofs-testlib/neofs_testlib/env/env.py b/neofs-testlib/neofs_testlib/env/env.py index 976833d9e..b34c9a5eb 100644 --- a/neofs-testlib/neofs_testlib/env/env.py +++ b/neofs-testlib/neofs_testlib/env/env.py @@ -238,8 +238,10 @@ def generate_alphabet_wallets( @allure.step("Kill current neofs env") def kill(self): - self.rest_gw.process.kill() - self.s3_gw.process.kill() + if self.rest_gw: + self.rest_gw.process.kill() + if self.s3_gw: + self.s3_gw.process.kill() for sn in self.storage_nodes: sn.process.kill() for ir in self.inner_ring_nodes: