Skip to content

Commit

Permalink
156
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 10, 2023
1 parent 0db918e commit cb1ed95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'Nokia'

# The short X.Y version
version = '2.14.155'
version = '2.14.156'
# The full version, including alpha/beta/rc tags
release = 'stable'

Expand Down
2 changes: 1 addition & 1 deletion moler/device/proxy_pc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _set_after_open_prompt(self, event):
if self._prompts_event is not None:
self.logger.info("prompts event is not none")
self._prompts_event.change_prompts(prompts=self._reverse_state_prompts_dict)
self._prompt_detected = True
self._prompt_detected = True

def _prepare_state_prompts(self):
"""
Expand Down
10 changes: 8 additions & 2 deletions moler/device/unixremote2.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,20 @@ def _set_after_open_prompt(self, event):
self.logger.info("UnixRemote2 reverse_state_prompts_dict: {}".format(
self._reverse_state_prompts_dict))
occurrence = event.get_last_occurrence()
prompt = occurrence['groups'][0]
prompt = occurrence['groups'][0].rstrip()
state = self._get_current_state()
with self._state_prompts_lock:
self._state_prompts[state] = re.escape(prompt.rstrip())
self._state_prompts[state] = re.escape(prompt)
self.logger.info("Found prompt '{}' for '{}'.".format(prompt, state))
if state == UNIX_REMOTE:
self._update_depending_on_ux_prompt()
elif state == PROXY_PC:
self._update_depending_on_proxy_prompt()
self.logger.info("UnixRemote2. updated _reverse_state_prompts_dict: {}".format(
self._reverse_state_prompts_dict))
if self._prompts_event is not None:
self.logger.info("prompts event is not none")
self._prompts_event.change_prompts(prompts=self._reverse_state_prompts_dict)
self._prompt_detected = True

@mark_to_call_base_class_method_with_same_name
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='moler', # Required
version='2.14.155', # Required
version='2.14.156', # Required
description='Moler is library to help in building automated tests', # Required
long_description=long_description, # Optional
long_description_content_type='text/markdown', # Optional (see note above)
Expand Down

0 comments on commit cb1ed95

Please sign in to comment.