From patchwork Tue Aug 11 15:11:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mei, JianweiX" X-Patchwork-Id: 75363 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F0CCDA04D8; Tue, 11 Aug 2020 08:31:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8A441C01F; Tue, 11 Aug 2020 08:31:26 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 48F561C00D for ; Tue, 11 Aug 2020 08:31:25 +0200 (CEST) IronPort-SDR: YT/fHOO+dXGWZHZBPdjK3fjPE0/qXgrku1Y3DtLULFlJnrxW6Xse8VX3RLU2zTxEjjwu9LNNk1 OydWjpA9qp2w== X-IronPort-AV: E=McAfee;i="6000,8403,9709"; a="151111967" X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="151111967" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2020 23:31:24 -0700 IronPort-SDR: jvn3kHHILy1OP+qs7rspvBDKalwH8S1dMb/QejI1g795EA9FItV9uZB/EtCRy7RknY45fESfOi 0OZuZpYa2JHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="398442573" Received: from unknown (HELO localhost.localdomain) ([10.240.183.106]) by fmsmga001.fm.intel.com with ESMTP; 10 Aug 2020 23:31:22 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Tue, 11 Aug 2020 15:11:08 +0000 Message-Id: <20200811151108.26158-1-jianweix.mei@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/kernelpf_iavf: remove extra code 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" Same command in tear down, and if it is executed before the quit command, an error will occur, so delete them from test case. Signed-off-by: Jianwei Mei Tested-by: Xie,WeiX < weix.xie@intel.com> Signed-off-by: Jianwei Mei --- tests/TestSuite_kernelpf_iavf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 733d72f..f8fa94f 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -335,8 +335,6 @@ class TestKernelpfIavf(TestCase): out = self.vm_dut.get_session_output() self.verify(self.wrong_mac in out, 'vf receive pkt fail with wrong mac') - self.dut.send_expect("ip link set dev %s vf 0 trust off" % self.host_intf, "# ") - def test_vf_multicast(self): """ enable kernel trust mode @@ -363,7 +361,6 @@ class TestKernelpfIavf(TestCase): self.send_random_pkt(multicast_mac, count=1) out = self.vm_dut.get_session_output() self.verify(multicast_mac in out, 'vf receive pkt fail with multicast mac') - self.dut.send_expect("ip link set dev %s vf 0 trust off" % self.host_intf, "# ") def test_vf_broadcast(self): """