From cf4547f5dd9446bb14cf853a7c945bbc7449e236 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Mon, 12 Feb 2024 10:47:00 +0300 Subject: [PATCH] chore: trying to force the cycle work --- test/e2e/driver/aut.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/e2e/driver/aut.py b/test/e2e/driver/aut.py index cc82ddb15d..754e1dd379 100644 --- a/test/e2e/driver/aut.py +++ b/test/e2e/driver/aut.py @@ -89,6 +89,14 @@ class AUT: SquishServer().add_attachable_aut(self.aut_id, self.port) if self.ctx is None: self.ctx = context.get_context(self.aut_id) + else: + if self.ctx is None: + for j in range(3): + try: + context.get_context(self.aut_id) + except AttributeError: + continue + squish.setApplicationContext(self.ctx) assert squish.waitFor(lambda: self.ctx.isRunning, configs.timeouts.PROCESS_TIMEOUT_SEC) except Exception as err: