From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1A8FC11C5 for ; Wed, 10 Aug 2016 09:32:51 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 10 Aug 2016 00:32:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,498,1464678000"; d="scan'208";a="1038459705" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 10 Aug 2016 00:32:51 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 00:32:50 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 00:32:50 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0248.002; Wed, 10 Aug 2016 15:32:47 +0800 From: "Liu, Yong" To: "Tu, LijuanX A" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command Thread-Index: AQHR8g89GiyuXtqqCUup9yWzVfDpw6BBdNwA//+3/wCAAKGQUA== Date: Wed, 10 Aug 2016 07:32:47 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E2226C0AE@SHSMSX103.ccr.corp.intel.com> References: <1470727218-4904-1-git-send-email-lijuanx.a.tu@intel.com> <57AA8D4A.6010408@intel.com> <38D041F150D4184C8114E499040E6234072D7C46@shsmsx102.ccr.corp.intel.com> In-Reply-To: <38D041F150D4184C8114E499040E6234072D7C46@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzM3OWEyZjItZTlhOC00ZjU1LWEyNzktNmM2YmU2NTQ2ZWJhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Im4wbkdNSHA1NnY4Z2VqbVR1eGcya3pRK2tJTk5oRWx4M0tRVmlFVFlPcWM9In0= x-ctpclassification: CTP_IC 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 07:32:52 -0000 Got, this patch is based on next branch and failed to apply on master branc= h. It will merge to master branch with next branch later. > -----Original Message----- > From: Tu, LijuanX A > Sent: Wednesday, August 10, 2016 1:54 PM > To: Liu, Yong; dts@dpdk.org > Subject: RE: [dts] [PATCH]qemu_kvm: fix timeout on running qemu command >=20 > Master branch need this patch too >=20 > > -----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 comman= d > > > > Applied into next branch. Lijuan, please add branch section, thus i ca= n > 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 > > > --- > > > 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, '(qem= u)') > > > + out =3D self.host_session.send_expect('%s' % cmd, '(qem= u)', > > > + 30) > > > self.host_session.send_expect('^C', "# ") > > > return out > > >