[dts] [PATCH]qemu_kvm: fix timeout on running qemu command

Liu, Yong yong.liu at intel.com
Wed Aug 10 04:11:22 CEST 2016


Applied into next branch. Lijuan, please add branch section, thus i can 
get to known it.

On 08/09/2016 03:20 PM, Lijuan Tu wrote:
> 2s is not enough for running qemu command
>
> Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
> ---
>   framework/qemu_kvm.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py
> index 96923e9..545bb5d 100644
> --- a/framework/qemu_kvm.py
> +++ b/framework/qemu_kvm.py
> @@ -1116,7 +1116,7 @@ class QEMUKvm(VirtBase):
>                   (self.host_dut.NAME, self.vm_name))
>               return None
>   
> -        self.host_session.send_expect('nc -U %s' % self.monitor_sock_path, '(qemu)', 2)
> +        self.host_session.send_expect('nc -U %s' % self.monitor_sock_path, '(qemu)')
>   
>           cmd = command
>           for arg in args:
> @@ -1126,7 +1126,7 @@ class QEMUKvm(VirtBase):
>           if 'quit' in cmd:
>               out = self.host_session.send_expect('%s' % cmd, '# ')
>           else:
> -            out = self.host_session.send_expect('%s' % cmd, '(qemu)')
> +            out = self.host_session.send_expect('%s' % cmd, '(qemu)', 30)
>           self.host_session.send_expect('^C', "# ")
>           return out
>   



More information about the dts mailing list