[PATCH 0/3] selftests/hid: upgrade the python scripts to match hid-tools 0.10

Benjamin Tissoires posted 3 patches 3 months ago
tools/testing/selftests/hid/tests/base.py          |  46 ++-
tools/testing/selftests/hid/tests/base_device.py   |  49 ++-
.../selftests/hid/tests/test_apple_keyboard.py     |   3 +-
tools/testing/selftests/hid/tests/test_gamepad.py  |   3 +-
.../selftests/hid/tests/test_ite_keyboard.py       |   3 +-
.../testing/selftests/hid/tests/test_multitouch.py |   2 +-
tools/testing/selftests/hid/tests/test_sony.py     |   7 +-
tools/testing/selftests/hid/tests/test_tablet.py   |  11 +-
.../selftests/hid/tests/test_wacom_generic.py      | 445 +++++++++++++++------
9 files changed, 412 insertions(+), 157 deletions(-)
[PATCH 0/3] selftests/hid: upgrade the python scripts to match hid-tools 0.10
Posted by Benjamin Tissoires 3 months ago
hid-tools 0.10 fixed a test regression introduced in 6.16-rc1: the
kernel might communicate with the uhid node while the test suite opens
the evdev node. This leads to a full test-suite time which used to run
in 6 minutes into an hour.

Merge the upstream hid-tools project in the selftest kernel dir to
reduce that time to something manageable again.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
Benjamin Tissoires (3):
      selftests/hid: run ruff format on the python part
      selftests/hid: sync the python tests to hid-tools 0.8
      selftests/hid: sync python tests to hid-tools 0.10

 tools/testing/selftests/hid/tests/base.py          |  46 ++-
 tools/testing/selftests/hid/tests/base_device.py   |  49 ++-
 .../selftests/hid/tests/test_apple_keyboard.py     |   3 +-
 tools/testing/selftests/hid/tests/test_gamepad.py  |   3 +-
 .../selftests/hid/tests/test_ite_keyboard.py       |   3 +-
 .../testing/selftests/hid/tests/test_multitouch.py |   2 +-
 tools/testing/selftests/hid/tests/test_sony.py     |   7 +-
 tools/testing/selftests/hid/tests/test_tablet.py   |  11 +-
 .../selftests/hid/tests/test_wacom_generic.py      | 445 +++++++++++++++------
 9 files changed, 412 insertions(+), 157 deletions(-)
---
base-commit: 2043ae9019e0f75c7785048230586c3f3ca0a2a4
change-id: 20250709-wip-fix-ci-d03bd06f778e

Best regards,
-- 
Benjamin Tissoires <bentiss@kernel.org>
Re: [PATCH 0/3] selftests/hid: upgrade the python scripts to match hid-tools 0.10
Posted by Benjamin Tissoires 2 months, 4 weeks ago
On Wed, 09 Jul 2025 11:08:48 +0200, Benjamin Tissoires wrote:
> hid-tools 0.10 fixed a test regression introduced in 6.16-rc1: the
> kernel might communicate with the uhid node while the test suite opens
> the evdev node. This leads to a full test-suite time which used to run
> in 6 minutes into an hour.
> 
> Merge the upstream hid-tools project in the selftest kernel dir to
> reduce that time to something manageable again.
> 
> [...]

Applied to hid/hid.git (for-6.17/selftests), thanks!

[1/3] selftests/hid: run ruff format on the python part
      https://git.kernel.org/hid/hid/c/c85a8cb9b8d3
[2/3] selftests/hid: sync the python tests to hid-tools 0.8
      https://git.kernel.org/hid/hid/c/642f9b2d608c
[3/3] selftests/hid: sync python tests to hid-tools 0.10
      https://git.kernel.org/hid/hid/c/1aee3a44fad2

Cheers,
-- 
Benjamin Tissoires <bentiss@kernel.org>