On Tue, Mar 20, 2012 at 2:55 AM,  <[email protected]> wrote:
> From: Lei Yang <[email protected]>
>
> if we don't pass the shell_prompt to the class "ShellSession", it will use the
> default one from __init__ of "ShellSession", if it doesn't match it, it will 
> cause
> failure

Great fix, applied, thank you!

https://github.com/autotest/autotest/commit/cf82d5eb75d7af3952b35dbdc69955c6c8c6cdde

> Signed-off-by: Lei Yang <[email protected]>
> ---
>  client/virt/kvm_vm.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py
> index c7b93dc..d2b8e72 100644
> --- a/client/virt/kvm_vm.py
> +++ b/client/virt/kvm_vm.py
> @@ -1168,7 +1168,8 @@ class VM(virt_vm.BaseVM):
>                 "nc -U %s" % self.get_serial_console_filename(),
>                 auto_close=False,
>                 output_func=virt_utils.log_line,
> -                output_params=("serial-%s.log" % name,))
> +                output_params=("serial-%s.log" % name,),
> +                prompt=self.params.get("shell_prompt", "[\#\$]"))
>
>         finally:
>             fcntl.lockf(lockfile, fcntl.LOCK_UN)
> --
> 1.7.5.4
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest



-- 
Lucas
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to