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 5B522A0577; Tue, 7 Apr 2020 04:06:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 244F12B86; Tue, 7 Apr 2020 04:06:10 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 83E80FFA for ; Tue, 7 Apr 2020 04:06:08 +0200 (CEST) IronPort-SDR: DLwIj83wyQ3kw0MJ6lUWBxoSrcjuau9yiD7Sqxcav5ACObvoAdbPSCNrnv0vugRaFG7CmUJD40 Z28B+VgpGUlQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2020 19:06:06 -0700 IronPort-SDR: kwxaA+LO+jEmJW8tQt6z5OIJY1gI1T+JsCE3svKPw6qEQHrCBi2fKfN9ZsY+QffL3y7RZrFVTS obfMtauNaNEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,353,1580803200"; d="scan'208";a="269271514" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 06 Apr 2020 19:06:05 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 7 Apr 2020 10:00:24 +0800 Message-Id: <1586224824-295603-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]vm2vm_virtio_pmd: fix pdump eal parameter 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: Xiao Qimai --- tests/TestSuite_vm2vm_virtio_pmd.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py index 5bc0d01..62929e0 100644 --- a/tests/TestSuite_vm2vm_virtio_pmd.py +++ b/tests/TestSuite_vm2vm_virtio_pmd.py @@ -167,10 +167,16 @@ class TestVM2VMVirtioPMD(TestCase): bootup pdump in VM """ self.pdump_session = client_dut.new_session(suite="pdump") - command_line = self.target + "/app/dpdk-pdump " + \ + if hasattr(client_dut, "vm_name"): + command_line = self.target + "/app/dpdk-pdump " + \ "-v --file-prefix=virtio -- " + \ "--pdump '%s,queue=*,rx-dev=%s,mbuf-size=8000'" - self.pdump_session.send_expect(command_line % (dump_port, self.dump_pcap), 'Port') + self.pdump_session.send_expect(command_line % (dump_port, self.dump_pcap), 'Port') + else: + command_line = self.target + "/app/dpdk-pdump " + \ + "-v --file-prefix=virtio_%s -- " + \ + "--pdump '%s,queue=*,rx-dev=%s,mbuf-size=8000'" + self.pdump_session.send_expect(command_line % (self.dut.prefix_subfix, dump_port, self.dump_pcap), 'Port') def start_vms(self, mode=0, mergeable=True): """ -- 1.8.3.1