From da02cdffd4b89b3568e3aa7e1f3d3a26d0cc2d2c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 19 Apr 2018 14:04:09 +1000 Subject: [PATCH] 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 --- tools/libinput-record-verify-yaml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] -- 2.34.1