~veebers/autopilot/fixing-extension-classes-and-test

« back to all changes in this revision

Viewing changes to autopilot/tests/functional/test_input_stack.py

  • Committer: Tarmac
  • Author(s): Martin Pitt
  • Date: 2014-07-31 06:04:38 UTC
  • mfrom: (507.1.2 ap-fix-uinput)
  • Revision ID: tarmac-20140731060438-1htp0rn294zevrlf
Replace group membership based access to /dev/uinput with dynamic ACLs for the current foreground session, and drop the /dev/autopilot-uinput symlink and "autopilot" group. Fixes: https://bugs.launchpad.net/bugs/1350263.

Approved by Christopher Lee, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    def setUp(self):
52
52
        super(InputStackKeyboardBase, self).setUp()
53
 
        if self.backend == 'UInput' and not (
54
 
                os.access('/dev/autopilot-uinput', os.W_OK) or
55
 
                os.access('/dev/uinput', os.W_OK)):
 
53
        if self.backend == 'UInput' and not os.access('/dev/uinput', os.W_OK):
56
54
            raise SkipTest(
57
55
                "UInput backend currently requires write access to "
58
 
                "/dev/autopilot-uinput or /dev/uinput")
 
56
                "/dev/uinput")
59
57
 
60
58
 
61
59
class InputStackKeyboardCreationTests(InputStackKeyboardBase):