mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
tools: measure-fuzz: run systemd-hwdb update, not udevadm hwdb
For backwards compatibility reasons, the hwdb.bin created udevadm hwdb does not actually apply matches in the way you'd expect. systemd-hwdb creates the newer format and is preferred. Related: #472 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3ec74cfc35
commit
a22137e7fd
1 changed files with 2 additions and 2 deletions
|
|
@ -269,8 +269,8 @@ def handle_existing_entry(device, fuzz):
|
|||
def reload_and_trigger_udev(device):
|
||||
import time
|
||||
|
||||
print('Running udevadm hwdb --update')
|
||||
subprocess.run(['udevadm', 'hwdb', '--update'], check=True)
|
||||
print('Running systemd-hwdb update')
|
||||
subprocess.run(['systemd-hwdb', 'update'], check=True)
|
||||
syspath = device.path.replace('/dev/input/', '/sys/class/input/')
|
||||
time.sleep(1)
|
||||
print('Running udevadm trigger {}'.format(syspath))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue