Merge lp:~saviq/unity8/autopilot-debug-passphrase-entry into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 189
Merged at revision: 189
Proposed branch: lp:~saviq/unity8/autopilot-debug-passphrase-entry
Merge into: lp:unity8
Diff against target: 27 lines (+4/-0)
1 file modified
tests/autopilot/unity8/shell/tests/test_lock_screen.py (+4/-0)
To merge this branch: bzr merge lp:~saviq/unity8/autopilot-debug-passphrase-entry
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Łukasz Zemczak Approve
Didier Roche-Tolomelli Approve
Review via email: mp+179915@code.launchpad.net

Commit message

Add debug logging to passphrase entry.

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Looking good, let's see if this just slow down and hide the bug or will bring beneficial outcome :)

review: Approve
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Fine with me!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/unity8/shell/tests/test_lock_screen.py'
--- tests/autopilot/unity8/shell/tests/test_lock_screen.py 2013-07-28 14:57:12 +0000
+++ tests/autopilot/unity8/shell/tests/test_lock_screen.py 2013-08-13 12:26:52 +0000
@@ -27,7 +27,9 @@
27from autopilot.platform import model27from autopilot.platform import model
28from testtools import skipUnless28from testtools import skipUnless
29from testtools.matchers import Equals29from testtools.matchers import Equals
30import logging
3031
32logger = logging.getLogger(__name__)
3133
32class TestLockscreen(UnityTestCase):34class TestLockscreen(UnityTestCase):
3335
@@ -144,6 +146,7 @@
144 pinentryField = self.main_window.get_pinentryField()146 pinentryField = self.main_window.get_pinentryField()
145 self.touch.tap_object(pinentryField)147 self.touch.tap_object(pinentryField)
146 self.keyboard.type(passphrase)148 self.keyboard.type(passphrase)
149 logger.debug("Typed passphrase: %s", pinentryField.text)
147 self.keyboard.type("\n")150 self.keyboard.type("\n")
148151
149 def _enter_prompt_passphrase(self, passphrase):152 def _enter_prompt_passphrase(self, passphrase):
@@ -160,4 +163,5 @@
160 prompt = self.main_window.get_greeter().get_prompt()163 prompt = self.main_window.get_greeter().get_prompt()
161 self.touch.tap_object(prompt)164 self.touch.tap_object(prompt)
162 self.keyboard.type(passphrase)165 self.keyboard.type(passphrase)
166 logger.debug("Typed passphrase: %s", prompt.text)
163 self.keyboard.type("\n")167 self.keyboard.type("\n")

Subscribers

People subscribed via source and target branches