mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 02:22:28 -04:00
selftests/hid: sync the python tests to hid-tools 0.8
Instead of backporting one by one each commits, let's pull them in bulk and refer to the hid-tools project for a detailed history. The short summary is: - make use of dataclass when possible, to avoid tuples - wacom: remove unused uhdev parameter - various small fixes not worth mentioning Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Link: https://patch.msgid.link/20250709-wip-fix-ci-v1-2-b7df4c271cf8@kernel.org Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
This commit is contained in:
@@ -12,6 +12,7 @@ import pytest
|
||||
|
||||
from .base_gamepad import BaseGamepad, JoystickGamepad, AxisMapping
|
||||
from hidtools.util import BusType
|
||||
from .base import HidBpf
|
||||
|
||||
import logging
|
||||
|
||||
@@ -654,7 +655,7 @@ class TestAsusGamepad(BaseTest.TestGamepad):
|
||||
|
||||
|
||||
class TestRaptorMach2Joystick(BaseTest.TestGamepad):
|
||||
hid_bpfs = [("FR-TEC__Raptor-Mach-2.bpf.o", True)]
|
||||
hid_bpfs = [HidBpf("FR-TEC__Raptor-Mach-2.bpf.o", True)]
|
||||
|
||||
def create_device(self):
|
||||
return RaptorMach2Joystick(
|
||||
|
||||
Reference in New Issue
Block a user