mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -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:
@@ -10,6 +10,7 @@ from . import base
|
||||
import copy
|
||||
from enum import Enum
|
||||
from hidtools.util import BusType
|
||||
from .base import HidBpf
|
||||
import libevdev
|
||||
import logging
|
||||
import pytest
|
||||
@@ -1472,7 +1473,7 @@ class TestGoodix_27c6_0e00(BaseTest.TestTablet):
|
||||
|
||||
|
||||
class TestXPPen_ArtistPro16Gen2_28bd_095b(BaseTest.TestTablet):
|
||||
hid_bpfs = [("XPPen__ArtistPro16Gen2.bpf.o", True)]
|
||||
hid_bpfs = [HidBpf("XPPen__ArtistPro16Gen2.bpf.o", True)]
|
||||
|
||||
def create_device(self):
|
||||
dev = XPPen_ArtistPro16Gen2_28bd_095b(
|
||||
@@ -1484,7 +1485,7 @@ class TestXPPen_ArtistPro16Gen2_28bd_095b(BaseTest.TestTablet):
|
||||
|
||||
|
||||
class TestXPPen_Artist24_28bd_093a(BaseTest.TestTablet):
|
||||
hid_bpfs = [("XPPen__Artist24.bpf.o", True)]
|
||||
hid_bpfs = [HidBpf("XPPen__Artist24.bpf.o", True)]
|
||||
|
||||
def create_device(self):
|
||||
return XPPen_Artist24_28bd_093a(
|
||||
@@ -1495,7 +1496,7 @@ class TestXPPen_Artist24_28bd_093a(BaseTest.TestTablet):
|
||||
|
||||
|
||||
class TestHuion_Kamvas_Pro_19_256c_006b(BaseTest.TestTablet):
|
||||
hid_bpfs = [("Huion__Kamvas-Pro-19.bpf.o", True)]
|
||||
hid_bpfs = [HidBpf("Huion__Kamvas-Pro-19.bpf.o", True)]
|
||||
|
||||
def create_device(self):
|
||||
return Huion_Kamvas_Pro_19_256c_006b(
|
||||
|
||||
Reference in New Issue
Block a user