[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH] virtinst: Use the default keymap when running tests



Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 virtinst/hostkeymap.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/virtinst/hostkeymap.py b/virtinst/hostkeymap.py
index 0342c78..38694d9 100644
--- a/virtinst/hostkeymap.py
+++ b/virtinst/hostkeymap.py
@@ -96,6 +96,10 @@ def _default_keymap():
     keymap = None
 
     kt = None
+
+    if "VIRTINST_TEST_SUITE" in os.environ:
+        return default
+
     for path, cb in [
         (_ETC_VCONSOLE, _sysconfig_keyboard),
         (_KEYBOARD_DIR, _sysconfig_keyboard),
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]