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 AEC543772 for ; Tue, 9 Aug 2016 09:24:44 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 09 Aug 2016 00:24:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,493,1464678000"; d="scan'208";a="1037733971" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by fmsmga002.fm.intel.com with ESMTP; 09 Aug 2016 00:24:43 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 9 Aug 2016 15:20:18 +0800 Message-Id: <1470727218-4904-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Tue, 09 Aug 2016 07:24:45 -0000 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 -- 1.9.3