[dts] [PATCH V1] tests/kernelpf_iavf: remove extra code

Xie, WeiX weix.xie at intel.com
Tue Aug 11 08:44:41 CEST 2020


Tested-by:  Xie,WeiX < weix.xie at intel.com>

Regards,
Xie Wei


-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Jianwei Mei
Sent: Tuesday, August 11, 2020 11:11 PM
To: dts at dpdk.org
Cc: Mei, JianweiX <jianweix.mei at intel.com>
Subject: [dts] [PATCH V1] tests/kernelpf_iavf: remove extra code

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 <jianweix.mei at intel.com>
---
 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):
         """
--
2.17.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestKernelpfIavf.log
Type: application/octet-stream
Size: 711312 bytes
Desc: TestKernelpfIavf.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200811/0e992e17/attachment.obj>


More information about the dts mailing list