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

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



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

ACK

Thanks,
Cole


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