From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 758635689 for ; Wed, 10 Aug 2016 04:08:18 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 09 Aug 2016 19:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,497,1464678000"; d="scan'208";a="1032843633" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga002.jf.intel.com with ESMTP; 09 Aug 2016 19:08:14 -0700 Message-ID: <57AA8D4A.6010408@intel.com> Date: Wed, 10 Aug 2016 10:11:22 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Lijuan Tu , dts@dpdk.org References: <1470727218-4904-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1470727218-4904-1-git-send-email-lijuanx.a.tu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 02:08:18 -0000 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 > --- > 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 >