From 88183d071803f7b68310f11e61d712c902194677 Mon Sep 17 00:00:00 2001 From: Vladimir Druzhinin <128374224+StateOf-Vlado@users.noreply.github.com> Date: Fri, 29 Sep 2023 13:01:43 +0200 Subject: [PATCH] Fix multiple instances (#126) --- driver/aut.py | 4 ++-- gui/components/community/create_community_popups.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/aut.py b/driver/aut.py index d04ba0a..ba74607 100644 --- a/driver/aut.py +++ b/driver/aut.py @@ -71,8 +71,8 @@ class AUT: SquishServer().set_aut_timeout() if configs.ATTACH_MODE: - if local_system.find_process_by_port(self.port): - self.port += 100 + while local_system.find_process_by_port(self.port): + self.port += 1000 SquishServer().add_attachable_aut(self.aut_id, self.port) command = [ configs.testpath.SQUISH_DIR / 'bin' / 'startaut', diff --git a/gui/components/community/create_community_popups.py b/gui/components/community/create_community_popups.py index 9f8ba4b..ad0b50c 100644 --- a/gui/components/community/create_community_popups.py +++ b/gui/components/community/create_community_popups.py @@ -76,7 +76,7 @@ class CreateCommunityPopup(BasePopup): def _open_logo_file_dialog(self, attempt: int = 2): self._add_logo_button.click() try: - return OpenFileDialog().wait_until_appears().prepare() + return OpenFileDialog().wait_until_appears() except LookupError as err: if attempt: _logger.debug(err)