on xenial help sign in
Work around Mir not delivering input to shell after restart, if the device isn't reinitialized.
6332082Christopher Lee
tests/autopilot/unity8/shell/tests/__init__.py+6
@@ -87,6 +87,12 @@ class UnityTestCase(AutopilotTestCase):
87 self._proxy = None
87 self._proxy = None
88 self._lightdm_mock_type = None
88 self._lightdm_mock_type = None
89 self._qml_mock_enabled = True
89 self._qml_mock_enabled = True
90+
91+ #### FIXME: This is a work around re: lp:1238417 ####
92+ from autopilot.input import _uinput
93+ _uinput._touch_device = _uinput.create_touch_device()
94+ ####
95+
90 self.touch = Touch.create()
96 self.touch = Touch.create()
91 self._setup_display_details()
97 self._setup_display_details()
92
98