Merge lp:~asac/phablet-tools/remove-chmod666-uinput-hack into lp:phablet-tools

Proposed by Alexander Sack
Status: Rejected
Rejected by: Sergio Schvezov
Proposed branch: lp:~asac/phablet-tools/remove-chmod666-uinput-hack
Merge into: lp:phablet-tools
Diff against target: 11 lines (+0/-1)
1 file modified
phablet-test-run (+0/-1)
To merge this branch: bzr merge lp:~asac/phablet-tools/remove-chmod666-uinput-hack
Reviewer Review Type Date Requested Status
Sergio Schvezov Needs Fixing
PS Jenkins bot continuous-integration Approve
Review via email: mp+182142@code.launchpad.net

This proposal supersedes a proposal from 2013-08-26.

Commit message

now that phablet is proper member of sudo/autopilot, remove chmod 666 /dev/uinput hack

Description of the change

remove chmod 666 hack previously added to support autopilot not being able to access /dev/uinput in unity8 tests. This is now fixed by making phablet member of sudo and hence automatically member of autopilot group (which owns the uinput file according to udev rule).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:168
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~asac/phablet-tools/remove-chmod666-uinput-hack/+merge/182121/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/phablet-tools-ci/145/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-saucy-amd64-ci/88
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-saucy-armhf-ci/88
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-saucy-i386-ci/88

Click here to trigger a rebuild:
http://s-jenkins:8080/job/phablet-tools-ci/145/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

phablet first needs to belong to the autopilot group.

>>> from evdev import UInput, ecodes as e
>>> ui = UInput()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/evdev/uinput.py", line 66, in __init__
    self._verify()
  File "/usr/lib/python2.7/dist-packages/evdev/uinput.py", line 186, in _verify
    raise UInputError(msg.format(self.devnode))
evdev.uinput.UInputError: "/dev/uinput" cannot be opened for writing
>>>
phablet@ubuntu-phablet:/$ ls -l /dev/uinput
crw-rw---- 1 root autopilot 10, 223 Aug 27 14:36 /dev/uinput
phablet@ubuntu-phablet:/$ groups
phablet adm tty dialout cdrom sudo dip video plugdev radio bluetooth android_graphics android_input audio sdcard_rw gps android_net3 android_net android_net2

review: Needs Fixing

Unmerged revisions

168. By Alexander Sack

remove chmod 666 /dev/uinput hack now that phablet is proper member of sudo/autopilot

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'phablet-test-run'
2--- phablet-test-run 2013-07-18 16:02:57 +0000
3+++ phablet-test-run 2013-08-26 15:48:45 +0000
4@@ -103,7 +103,6 @@
5 }
6
7 run_test() {
8- exec_with_adb chmod 666 /dev/uinput
9 set +e
10 if [ "$RESULTDIR" ]; then
11 exec_with_ssh autopilot run -o /tmp/test_results.xml -f xml $TESTSUITE

Subscribers

People subscribed via source and target branches