From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC532A04A3; Thu, 11 Jun 2020 14:17:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E414D2BAA; Thu, 11 Jun 2020 14:17:07 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 55426FFA for ; Thu, 11 Jun 2020 14:17:06 +0200 (CEST) IronPort-SDR: D8h+aY20d+bY3tUF3Elpel7HJy984o+GgSKhKl6eKX98QiFkuWjgX/nFVj40srGAwit3UYc9hO IsdEHmJb5RRw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 05:17:06 -0700 IronPort-SDR: W44JYoabzv4pUpmLBshFIJdbfGMjXMEhbvASslFzlrs8zRag2I1/S+l3who/2bB0VNsbILFiTX Mrkomj+StfcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="275314561" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 11 Jun 2020 05:17:05 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:17:05 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:17:05 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.221]) with mapi id 14.03.0439.000; Thu, 11 Jun 2020 20:17:03 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" , "Xie, WeiX" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/project_dpdk: add action of copy QMP from dts to dut Thread-Index: AQHWOk6ohigV4hklKUqJUSNKmrCKaKjTX8mA Date: Thu, 11 Jun 2020 12:17:02 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5BC0F@SHSMSX101.ccr.corp.intel.com> References: <1591234134-19428-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1591234134-19428-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/project_dpdk: add action of copy QMP from dts to dut 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks -----Original Message----- From: dts On Behalf Of lihong Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B4=1B$BF|=1B(B 9:29 To: dts@dpdk.org; Xie, WeiX Cc: Ma, LihongX Subject: [dts] [PATCH V1] framework/project_dpdk: add action of copy QMP fr= om dts to dut Signed-off-by: lihong --- framework/project_dpdk.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index e9= 7d1ab..ebc008e 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -309,6 +309,14 @@ class DPDKdut(Dut): for p in self.patches: self.session.copy_file_to('dep/' + p, dst_dir) =20 + # copy QMP file to dut + if ':' not in self.session.name: + out =3D self.send_expect("ls -d ~/QMP", "# ", verify=3DTru= e) + if isinstance(out, int): + self.send_expect("mkdir -p ~/QMP", "# ") + self.session.copy_file_to('dep/QMP/qemu-ga-client', '~/QMP= /') + self.session.copy_file_to('dep/QMP/qmp.py', '~/QMP/') + self.kill_all() =20 # enable core dump -- 2.7.4