chore: trying to force the cycle work
This commit is contained in:
parent
f868d2c1de
commit
cf4547f5dd
|
@ -89,6 +89,14 @@ class AUT:
|
||||||
SquishServer().add_attachable_aut(self.aut_id, self.port)
|
SquishServer().add_attachable_aut(self.aut_id, self.port)
|
||||||
if self.ctx is None:
|
if self.ctx is None:
|
||||||
self.ctx = context.get_context(self.aut_id)
|
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)
|
squish.setApplicationContext(self.ctx)
|
||||||
assert squish.waitFor(lambda: self.ctx.isRunning, configs.timeouts.PROCESS_TIMEOUT_SEC)
|
assert squish.waitFor(lambda: self.ctx.isRunning, configs.timeouts.PROCESS_TIMEOUT_SEC)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
Loading…
Reference in New Issue