Skip to content

Draft: tests: tablet: add a rubber hovering test

Benjamin Tissoires requested to merge bentiss/hid-tools:wip/tablet-rubber into master

This MR is providing 2 tests for tablets regarding the hovering of a rubber:

  • either we tolerate BTN_TOOL_PEN to be set (and kept) in the first frame
  • either we enforce BTN_TOOL_RUBBER to be set from the very first frame

Either way, this is for the time being a point of discussion upstream.

The current results is (only one known device passes the not tolerant test):

$> sudo pytest -k 'tablet and rubber' -v
...
tests/test_tablet.py::Testn_trig_1b96_0c01::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::Testn_trig_1b96_0c01::test_rubber_hover FAILED
tests/test_tablet.py::Testn_trig_1b96_0c03::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::Testn_trig_1b96_0c03::test_rubber_hover FAILED
tests/test_tablet.py::Testn_trig_1b96_0f00::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::Testn_trig_1b96_0f00::test_rubber_hover FAILED
tests/test_tablet.py::Testn_trig_1b96_0f04::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::Testn_trig_1b96_0f04::test_rubber_hover FAILED
tests/test_tablet.py::Testn_trig_1b96_1000::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::Testn_trig_1b96_1000::test_rubber_hover FAILED
tests/test_tablet.py::TestGXTP_27c6_0113::test_rubber_hover_tolerant PASSED
tests/test_tablet.py::TestGXTP_27c6_0113::test_rubber_hover PASSED

Cc: @whot

Merge request reports

Loading