chore: trying to force the cycle work

This commit is contained in:
Anastasiya Semenkevich 2024-02-12 10:47:00 +03:00 committed by Anastasiya
parent f868d2c1de
commit cf4547f5dd
1 changed files with 8 additions and 0 deletions

View File

@ -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: