summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2021-05-22 20:11:10 +0300
committerRan Benita <ran@unusedvar.com>2021-05-22 20:11:10 +0300
commit8507af731a4e6d5e1107639a35328959f3b48155 (patch)
tree0126a0a37286529a5232b7a2e978575e45be2131 /test
parent98f07da8952a65aae7974965bee9a2418d71efea (diff)
downloadxorg-lib-libxkbcommon-8507af731a4e6d5e1107639a35328959f3b48155.tar.gz
test/tool-option-parsing: don't depend on build prefix
Fixes: https://github.com/xkbcommon/libxkbcommon/issues/244 Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/tool-option-parsing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tool-option-parsing.py b/test/tool-option-parsing.py
index 9517ea8..0f8b240 100755
--- a/test/tool-option-parsing.py
+++ b/test/tool-option-parsing.py
@@ -298,6 +298,10 @@ if __name__ == '__main__':
with tempfile.TemporaryDirectory() as tmpdir:
# Use our own test xkeyboard-config copy.
os.environ['XKB_CONFIG_ROOT'] = top_srcdir + '/test/data'
+ # Use our own X11 locale copy.
+ os.environ['XLOCALEDIR'] = top_srcdir + '/test/data/locale'
+ # Use our own locale.
+ os.environ['LC_CTYPE'] = 'en_US.UTF-8'
# libxkbcommon has fallbacks when XDG_CONFIG_HOME isn't set so we need
# to override it with a known (empty) directory. Otherwise our test
# behavior depends on the system the test is run on.