From 7f6f2b368f09352ed27a6212e1e2a4c59fb81640 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 ad5ec9e34..d14212742 100644 --- a/neofs-testlib/neofs_testlib/env/env.py +++ b/neofs-testlib/neofs_testlib/env/env.py @@ -241,8 +241,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: