linux: Add test for touchpads being tagged as mice

udev adds both tags to touchpads, so replicate that behaviour.
This commit is contained in:
Bastien Nocera 2021-08-10 12:39:45 +02:00
parent 781e856974
commit 26c90728c3

View file

@ -1370,7 +1370,7 @@ class Tests(dbusmock.DBusTestCase):
'input',
'/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.2/0003:046D:C52B.0009/0003:046D:4101.000A/input/input22',
parent,
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1'])
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1', 'ID_INPUT_MOUSE', '1'])
self.testbed.uevent(batt_dev, 'change')
time.sleep(0.5)
@ -1389,7 +1389,7 @@ class Tests(dbusmock.DBusTestCase):
'input',
'/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.2/0003:046D:C52B.0009/0003:046D:4101.000A/input/input22',
parent,
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1'])
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1', 'ID_INPUT_MOUSE', '1'])
dev = self.testbed.add_device(
'power_supply',