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

Giuseppe Scrivano gscrivan at redhat.com
Thu Oct 3 09:30:19 UTC 2013


Signed-off-by: Giuseppe Scrivano <gscrivan at 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




More information about the virt-tools-list mailing list