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 63181A034E; Thu, 4 Jun 2020 11:00:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3F6AD1D5F1; Thu, 4 Jun 2020 11:00:19 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F0C721D5DA for ; Thu, 4 Jun 2020 11:00:16 +0200 (CEST) IronPort-SDR: tcJVy8fVygCI8Pd8MoSG4iSwbYse81XFiDfsHaH3JtarfQv1J8rKPHzArhGs9xwHdCQU2h5PfD eXpJLxHBOhZg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2020 02:00:15 -0700 IronPort-SDR: n3gNbOLap7hfK5J8RkwwMJ0+hyvvhlhrEAr5nxb+naxQQV/EJincuzS1hdpQY8O8UbCb7vvvN+ 9mnB76vN/q5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,471,1583222400"; d="scan'208";a="269352526" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by orsmga003.jf.intel.com with ESMTP; 04 Jun 2020 02:00:14 -0700 From: lihong To: dts@dpdk.org, weix.xie@intel.com Cc: lihong Date: Thu, 4 Jun 2020 09:28:54 +0800 Message-Id: <1591234134-19428-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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 e97d1ab..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) + # copy QMP file to dut + if ':' not in self.session.name: + out = self.send_expect("ls -d ~/QMP", "# ", verify=True) + 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() # enable core dump -- 2.7.4