X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fxkeyboard-config-test.py.in;h=77cff1f06515466961eb5e4c1c2e4f4da15f0788;hb=399aa888e0e5b2fc37bde5ec002211094f0c0448;hp=66deca40e342e8ef9852e120dc19c16faff6971f;hpb=ef81d04eef4b1a60ff42bd9ccbe2918b0a5420ec;p=platform%2Fupstream%2Flibxkbcommon.git diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index 66deca4..77cff1f 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -112,6 +112,8 @@ class XkbCompInvocation(Invocation): class XkbcommonInvocation(Invocation): + UNRECOGNIZED_KEYSYM_ERROR = "XKB-107" + 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) - if "unrecognized keysym" in output: + if self.UNRECOGNIZED_KEYSYM_ERROR in output: 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: