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

Jianwei Mei jianweix.mei at intel.com
Tue Aug 11 17:11:08 CEST 2020


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



More information about the dts mailing list