summaryrefslogtreecommitdiff
path: root/tools/libinput-measure-fuzz.py
Commit message (Collapse)AuthorAgeFilesLines
* Use python black for all pyhon file formattingPeter Hutterer2021-01-281-170/+223
| | | | | | Let's enforce a consistent (and verifiable) style everywhere. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: fix flake8 complaintsPeter Hutterer2021-01-041-1/+1
| | | | | | | | | | tools/libinput-measure-fuzz.py:212:15: F523 '...'.format(...) has unused arguments at position(s): 1 But the E741 is better turned off in general: tools/libinput-measure-fuzz.py:319:29: E741 ambiguous variable name 'l' Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: sleep for 2 seconds to give the hwdb timePeter Hutterer2020-04-191-2/+2
| | | | | | one second isn't always enough here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: fix the tool to work againPeter Hutterer2020-04-191-6/+23
| | | | | | | | | | | | | | Where libinput is installed, checking whether the fuzz is applied to the device will always fail with an error - the udev rules will remove the fuzz and copy its value to the LIBINPUT_FUZZ properties instead. So let's fix this: where the fuzz shows up on the device print a warning because libinput's udev rule isn't working. And where it's missing check the udev properties and compare those to the settings instead. Fixes #472 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: run systemd-hwdb update, not udevadm hwdbPeter Hutterer2020-04-191-2/+2
| | | | | | | | | | 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>
* tools: measure-fuzz: handle a None return correctlyPeter Hutterer2020-04-191-1/+1
| | | | | | Fixes #472 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: flake8 fixes for the various python filesPeter Hutterer2019-09-111-18/+18
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: switch measure-fuzz to use python-libevdevPeter Hutterer2019-04-011-31/+11
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: flake8 fixes, typo fixes and missing exception handlingPeter Hutterer2019-03-151-10/+11
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: slightly expand the helpPeter Hutterer2019-01-021-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: fix a typoPeter Hutterer2019-01-021-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: downgrade the fuzz mismatch error to just a warningPeter Hutterer2019-01-021-2/+2
| | | | | | Related to #199 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: measure-fuzz: fix exception printingPeter Hutterer2019-01-021-1/+1
| | | | | | | | | | | | | During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/libinput/libinput-measure-fuzz", line 464, in <module> main(sys.argv) File "/usr/lib/x86_64-linux-gnu/libinput/libinput-measure-fuzz", line 458, in main print('Error: {}'.format(e.message)) AttributeError: 'InvalidConfigurationError' object has no attribute 'message' Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>:
* tools: fake-build the other tools the same way as measure touchpad-tapPeter Hutterer2018-07-091-0/+464
Doesn't actually do anything but this way they end up in the builddir and can be picked up by ./builddir/libinput measure fuzz, etc. And rename the source files to .py to signal that they are not supposed to be directly executed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>