]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/hid: sync python tests to hid-tools 0.10
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 9 Jul 2025 09:08:51 +0000 (11:08 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 10 Jul 2025 14:20:27 +0000 (16:20 +0200)
commit1aee3a44fad2adeaa8f1a3aafd7c0154924af666
tree4c80f7579b17c9b589ed6cdd2ecc4e39d24fbcd0
parent642f9b2d608cc2239d22957ca1dc557d07470b50
selftests/hid: sync python tests to hid-tools 0.10

hid-tools 0.10 fixes one inconvenience introduced by
commit 6a9e76f75c1a ("HID: multitouch: Disable touchpad
on firmware level while not in use")

This change added a new callback when a hid-nultitouch device is opened
or closed to put the underlying device into a given operating mode.
However, in the test cases, that means that while the single threaded
test is run, it opens the device but has to react to the device while
the open() is still running. hid-tools now implements a minimal thread
to circumvent this.

This makes the HID kernel tests in sync with hid-tools 0.10.

This has the net effect of running the full HID python testsuite in 6
minutes instead of 1 hour.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://patch.msgid.link/20250709-wip-fix-ci-v1-3-b7df4c271cf8@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/tests/base_device.py