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
1=== modified file 'tests/autopilot/unity8/shell/tests/test_lock_screen.py'
2--- tests/autopilot/unity8/shell/tests/test_lock_screen.py 2013-07-28 14:57:12 +0000
3+++ tests/autopilot/unity8/shell/tests/test_lock_screen.py 2013-08-13 12:26:52 +0000
4@@ -27,7 +27,9 @@
5 from autopilot.platform import model
6 from testtools import skipUnless
7 from testtools.matchers import Equals
8+import logging
9
10+logger = logging.getLogger(__name__)
11
12 class TestLockscreen(UnityTestCase):
13
14@@ -144,6 +146,7 @@
15 pinentryField = self.main_window.get_pinentryField()
16 self.touch.tap_object(pinentryField)
17 self.keyboard.type(passphrase)
18+ logger.debug("Typed passphrase: %s", pinentryField.text)
19 self.keyboard.type("\n")
20
21 def _enter_prompt_passphrase(self, passphrase):
22@@ -160,4 +163,5 @@
23 prompt = self.main_window.get_greeter().get_prompt()
24 self.touch.tap_object(prompt)
25 self.keyboard.type(passphrase)
26+ logger.debug("Typed passphrase: %s", prompt.text)
27 self.keyboard.type("\n")

Subscribers

People subscribed via source and target branches