Skip to content

Commit 4d69586

Browse files
author
Benjamin Tissoires
committed
selftests/hid: wacom: fix confidence tests
The device is exported with a fuzz of 4, meaning that the `+ t` here is removed by the fuzz algorithm, making those tests failing. Not sure why, but when I run this locally it was passing, but not in the VM of the CI. Fixes: b0fb904 ("HID: wacom: Add additional tests of confidence behavior") Link: https://gitlab.freedesktop.org/bentiss/hid/-/jobs/53692957#L3315 Acked-by: Jason Gerecke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent a9f1da0 commit 4d69586

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/selftests/hid/tests/test_wacom_generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,8 @@ def make_contact(self, contact_id=0, t=0):
880880
does not overlap with other contacts. The value of `t` may be
881881
incremented over time to move the point along a linear path.
882882
"""
883-
x = 50 + 10 * contact_id + t
884-
y = 100 + 100 * contact_id + t
883+
x = 50 + 10 * contact_id + t * 11
884+
y = 100 + 100 * contact_id + t * 11
885885
return test_multitouch.Touch(contact_id, x, y)
886886

887887
def make_contacts(self, n, t=0):
@@ -902,8 +902,8 @@ def assert_contact(self, uhdev, evdev, contact_ids, t=0):
902902
tracking_id = contact_ids.tracking_id
903903
slot_num = contact_ids.slot_num
904904

905-
x = 50 + 10 * contact_id + t
906-
y = 100 + 100 * contact_id + t
905+
x = 50 + 10 * contact_id + t * 11
906+
y = 100 + 100 * contact_id + t * 11
907907

908908
# If the data isn't supposed to be stored in any slots, there is
909909
# nothing we can check for in the evdev stream.

0 commit comments

Comments
 (0)