Screen unlock broken on image #265 through test automation

Bug #1298869 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd
Fix Released
Undecided
Unassigned
powerd (Ubuntu)
Fix Released
Critical
Unassigned
Changed in powerd (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Oliver Grawert (ogra) wrote :

running the unlock screen command from the testsuite (lp:ubuntu-test-cases/touch) causes the error below:

ogra@anubis:~/Devel/branches/touch-testing$ adb shell 'sudo -i -u phablet bash -ic "/usr/bin/python /sbin/unlock_screen.py"'
INFO:root:Taking screen lock (http://pad.lv/1236525).
Traceback (most recent call last):
  File "/sbin/unlock_screen.py", line 52, in <module>
    unlock_screen()
  File "/sbin/unlock_screen.py", line 14, in unlock_screen
    _restart_with_testability()
  File "/sbin/unlock_screen.py", line 20, in _restart_with_testability
    powerd_cookie = _take_powerd_screen_lock(powerd)
  File "/sbin/unlock_screen.py", line 33, in _take_powerd_screen_lock
    "autopilot-lock", 1, dbus_interface='com.canonical.powerd'
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.44" (uid=32011 pid=2508 comm="/usr/bin/python /sbin/unlock_screen.py ") interface="com.canonical.powerd" member="requestSysState" error name="(unset)" requested_reply="0" destination=":1.2" (uid=0 pid=967 comm="/usr/bin/powerd ")

Revision history for this message
Oliver Grawert (ogra) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

seems the "at_console" policy was accidentially dropped, the above patch fixes it.

Revision history for this message
Oliver Grawert (ogra) wrote :

we also need to add the above to the default lists of tests to run on powerd landing.

bzr branch lp:ubuntu-test-cases/touch
adb push utils/target/unlock_screen.py /sbin/
adb shell 'sudo -i -u phablet bash -ic "/usr/bin/python /sbin/unlock_screen.py"'

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerd - 0.13+14.04.20140327.is.0.13+14.04.20140129-0ubuntu1

---------------
powerd (0.13+14.04.20140327.is.0.13+14.04.20140129-0ubuntu1) trusty; urgency=medium

  * Revert to previous powerd as screen unlocking doesn't work in
    automation (LP: #1298869)
 -- Didier Roche <email address hidden> Fri, 28 Mar 2014 10:13:51 +0100

Changed in powerd (Ubuntu):
status: New → Fix Released
Changed in powerd:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.