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 0BF03A058A; Fri, 17 Apr 2020 10:55:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D02C41DEBA; Fri, 17 Apr 2020 10:55:18 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4842F1DC7B for ; Fri, 17 Apr 2020 10:55:16 +0200 (CEST) IronPort-SDR: L/BS1lCPdIh4ckGxXgG3sd6jX8ErYse6EPM3/MaQq7NG0Qy3mfGpVY7W2xvVeUk2KTmHHKj4Rx tSfz5yubdFSA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 01:55:15 -0700 IronPort-SDR: kNqEYaCgy9ZtJ45LFhIBFJ3wSv9AW9Ba9gLqjyz4oyuGOkdGUOZg1kmlHxtQnH38cfXM6coKsE o4C8Q0l71u7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,394,1580803200"; d="scan'208";a="272358808" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 17 Apr 2020 01:55:14 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 17 Apr 2020 16:48:47 +0800 Message-Id: <1587113327-302161-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]shutdown_api: fix scapy cmd error 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" *. mac addr should be enclosed in quotation marks Signed-off-by: Xiao Qimai --- tests/TestSuite_shutdown_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 8661863..b5c0d5a 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -709,7 +709,7 @@ class TestShutdownApi(TestCase): tgenInput = [] for port in self.ports: dmac=self.dut.get_mac_address(port) - self.tester.scapy_append('wrpcap("test%d.pcap",[Ether(src="02:00:00:00:00:0%d",dst=%s)/IP()/UDP()/()])'% (port, port, dmac)) + self.tester.scapy_append('wrpcap("test%d.pcap",[Ether(src="02:00:00:00:00:0%d",dst="%s")/IP()/UDP()/()])'% (port, port, dmac)) tgenInput.append((self.tester.get_local_port(port), self.tester.get_local_port(port), "test%d.pcap" % port)) for _ in range(stress_iterations): self.dut.send_expect("port stop all", "testpmd> ", 100) -- 1.8.3.1