From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7E7B256AB for ; Wed, 10 Aug 2016 07:53:44 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 09 Aug 2016 22:53:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,498,1464678000"; d="scan'208";a="746678018" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 09 Aug 2016 22:53:43 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 9 Aug 2016 22:53:42 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 9 Aug 2016 22:53:42 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.150]) with mapi id 14.03.0248.002; Wed, 10 Aug 2016 13:53:40 +0800 From: "Tu, LijuanX A" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command Thread-Index: AQHR8qwSx04w3ZMEQ0OfvbzvdNwtcqBBrrNQ Date: Wed, 10 Aug 2016 05:53:40 +0000 Message-ID: <38D041F150D4184C8114E499040E6234072D7C46@shsmsx102.ccr.corp.intel.com> References: <1470727218-4904-1-git-send-email-lijuanx.a.tu@intel.com> <57AA8D4A.6010408@intel.com> In-Reply-To: <57AA8D4A.6010408@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 05:53:45 -0000 Master branch need this patch too > -----Original Message----- > From: Liu, Yong > Sent: Wednesday, August 10, 2016 10:11 AM > To: Tu, LijuanX A; dts@dpdk.org > Subject: Re: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command >=20 > Applied into next branch. Lijuan, please add branch section, thus i can = get > to known it. >=20 > On 08/09/2016 03:20 PM, Lijuan Tu wrote: > > 2s is not enough for running qemu command > > > > Signed-off-by: Lijuan Tu > > --- > > 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 =3D command > > for arg in args: > > @@ -1126,7 +1126,7 @@ class QEMUKvm(VirtBase): > > if 'quit' in cmd: > > out =3D self.host_session.send_expect('%s' % cmd, '# ') > > else: > > - out =3D self.host_session.send_expect('%s' % cmd, '(qemu)= ') > > + out =3D self.host_session.send_expect('%s' % cmd, '(qemu)= ', > > + 30) > > self.host_session.send_expect('^C', "# ") > > return out > >