Commit a22137e7 authored by Peter Hutterer's avatar Peter Hutterer

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's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 3ec74cfc
...@@ -269,8 +269,8 @@ def handle_existing_entry(device, fuzz): ...@@ -269,8 +269,8 @@ def handle_existing_entry(device, fuzz):
def reload_and_trigger_udev(device): def reload_and_trigger_udev(device):
import time import time
print('Running udevadm hwdb --update') print('Running systemd-hwdb update')
subprocess.run(['udevadm', 'hwdb', '--update'], check=True) subprocess.run(['systemd-hwdb', 'update'], check=True)
syspath = device.path.replace('/dev/input/', '/sys/class/input/') syspath = device.path.replace('/dev/input/', '/sys/class/input/')
time.sleep(1) time.sleep(1)
print('Running udevadm trigger {}'.format(syspath)) print('Running udevadm trigger {}'.format(syspath))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment