projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58cf854
)
tools: measure-fuzz: handle a None return correctly
author
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 19 Apr 2020 05:18:42 +0000
(15:18 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 19 Apr 2020 05:18:42 +0000
(15:18 +1000)
Fixes #472
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-measure-fuzz.py
patch
|
blob
|
history
diff --git
a/tools/libinput-measure-fuzz.py
b/tools/libinput-measure-fuzz.py
index c01b8a491f350a93a63329d023401265ef4921df..09983d996598dd8758c2609ede42735d9b6bdeb3 100755
(executable)
--- a/
tools/libinput-measure-fuzz.py
+++ b/
tools/libinput-measure-fuzz.py
@@
-284,7
+284,7
@@
def test_hwdb_entry(device, fuzz):
d = Device(device.path)
f = d.check_axes()
- if fuzz == f[0] and fuzz == f[1]:
+ if f
is not None and f
uzz == f[0] and fuzz == f[1]:
print_green('Success')
return True
else: