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:
Peter Hutterer 2020-04-19 15:22:34 +10:00
parent 3ec74cfc35
commit a22137e7fd

View file

@ -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))