summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-04-19 14:04:09 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-04-19 15:10:43 +1000
commitda02cdffd4b89b3568e3aa7e1f3d3a26d0cc2d2c (patch)
tree0e92b13628b59e56a02595551b06faa6570866a0 /tools
parent41704028d30c7e5a7b633fe47983a9eeccd37bb6 (diff)
tools: yaml verifier: allow for SYN_REPORT value 1
This is generated by the kernel's autorepeat code, see input_repeat_key() in drivers/input/input.c Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/libinput-record-verify-yaml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libinput-record-verify-yaml.py b/tools/libinput-record-verify-yaml.py
index 14b021eb..c8f2f90f 100755
--- a/tools/libinput-record-verify-yaml.py
+++ b/tools/libinput-record-verify-yaml.py
@@ -192,7 +192,8 @@ class TestYaml(unittest.TestCase):
ev_syn = evdev[-1]
self.assertEqual(ev_syn[2], 0)
self.assertEqual(ev_syn[3], 0)
- self.assertEqual(ev_syn[4], 0)
+ # SYN_REPORT value is 1 in case of some key repeats
+ self.assertLessEqual(ev_syn[4], 1)
def test_events_evdev_syn_report(self):
devices = self.yaml['devices']