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

Cole Robinson crobinso at redhat.com
Thu Oct 3 13:25:56 UTC 2013


On 10/03/2013 05:30 AM, Giuseppe Scrivano wrote:
> 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),
> 

ACK

Thanks,
Cole




More information about the virt-tools-list mailing list