[dts] [V1 5/5] tests/TestSuite_stats_checks: fix pylama errors

Jun Dong junx.dong at intel.com
Fri Mar 11 03:00:21 CET 2022


Pylama found the following errors:
tests/TestSuite_stats_checks.py:265: [E] E0102 method already defined line 65 [pylint]
tests/TestSuite_stats_checks.py:271: [E] E0102 method already defined line 71 [pylint]

Signed-off-by: Jun Dong <junx.dong at intel.com>
---
 tests/TestSuite_stats_checks.py | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tests/TestSuite_stats_checks.py b/tests/TestSuite_stats_checks.py
index ab120010..e72a67ab 100644
--- a/tests/TestSuite_stats_checks.py
+++ b/tests/TestSuite_stats_checks.py
@@ -48,7 +48,6 @@ from framework.test_case import TestCase
 
 ETHER_HEADER_LEN = 18
 IP_HEADER_LEN = 20
-ETHER_STANDARD_MTU = 1518
 RANDOM_IP_POOL = ['192.168.10.222/0']
 prefix_list = ['rx_good_packets', 'tx_good_packets', 'rx_good_bytes', 'tx_good_bytes']
 
@@ -62,21 +61,6 @@ class TestStatsChecks(TestCase):
     # of TestCase. This was done because the current test system doesn't support
     # inheritance.
     #
-    def tear_down(self):
-        """
-        Run after each test case.
-        """
-        self.dut.kill_all()
-
-    def tear_down_all(self):
-        """
-        When the case of this test suite finished, the environment should
-        clear up.
-        """
-        self.tester.send_expect(f"ifconfig {self.tester.get_interface(self.tester.get_local_port(self.rx_port))} " +
-                                f"mtu {ETHER_STANDARD_MTU}", "# ")
-        super().tear_down_all()
-
     def exec(self, command: str) -> str:
         """
         An abstraction to remove repeated code throughout the subclasses of this class
@@ -275,12 +259,6 @@ class TestStatsChecks(TestCase):
         """
         self.dut.kill_all()
 
-    #
-    #
-    #
-    # Test cases.
-    #
-
     def test_stats_checks(self):
         self.pmdout.start_testpmd("Default")
         self.exec("port start all")
-- 
2.25.1



More information about the dts mailing list