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

Tu, LijuanX A lijuanx.a.tu at intel.com
Wed Aug 10 07:53:40 CEST 2016


Master branch need this patch too

 > -----Original Message-----
 > From: Liu, Yong
 > Sent: Wednesday, August 10, 2016 10:11 AM
 > To: Tu, LijuanX A; dts at dpdk.org
 > Subject: Re: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command
 > 
 > 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