projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ef81d04
)
Use warning code in xkeyboard-config test
author
Pierre Le Marre
<dev@wismill.eu>
Mon, 18 Sep 2023 16:17:39 +0000
(18:17 +0200)
committer
Wismill
<dev@wismill.eu>
Tue, 19 Sep 2023 06:49:52 +0000
(08:49 +0200)
test/xkeyboard-config-test.py.in
patch
|
blob
|
history
diff --git
a/test/xkeyboard-config-test.py.in
b/test/xkeyboard-config-test.py.in
index
66deca4
..
77cff1f
100755
(executable)
--- a/
test/xkeyboard-config-test.py.in
+++ b/
test/xkeyboard-config-test.py.in
@@
-112,6
+112,8
@@
class XkbCompInvocation(Invocation):
class XkbcommonInvocation(Invocation):
class XkbcommonInvocation(Invocation):
+ UNRECOGNIZED_KEYSYM_ERROR = "XKB-107"
+
def run(self):
r, m, l, v, o = self.rmlvo
args = [
def run(self):
r, m, l, v, o = self.rmlvo
args = [
@@
-130,9
+132,9
@@
class XkbcommonInvocation(Invocation):
try:
output = subprocess.check_output(args, stderr=subprocess.STDOUT,
universal_newlines=True)
try:
output = subprocess.check_output(args, stderr=subprocess.STDOUT,
universal_newlines=True)
- if
"unrecognized keysym"
in output:
+ if
self.UNRECOGNIZED_KEYSYM_ERROR
in output:
for line in output.split('\n'):
for line in output.split('\n'):
- if
"unrecognized keysym"
in line:
+ if
self.UNRECOGNIZED_KEYSYM_ERROR
in line:
self.error = line
self.exitstatus = 99 # tool doesn't generate this one
else:
self.error = line
self.exitstatus = 99 # tool doesn't generate this one
else: