[dts] [PATCH V1] tests/cvl_switch_filter:update class name and instance Packet class

Jianwei Mei jianweix.mei at intel.com
Mon Jul 27 20:33:11 CEST 2020


1. Suite TestSuite_cvl_dcf_switch_filter.py and TestSuite_cvl_switch_filter.py have 
the same class name, lead to logs generated in one log file.
2. Class packet have not instantiated.

Signed-off-by: Jianwei Mei <jianweix.mei at intel.com>
---
 tests/TestSuite_cvl_switch_filter.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_cvl_switch_filter.py b/tests/TestSuite_cvl_switch_filter.py
index 01a2842..5dc7d21 100644
--- a/tests/TestSuite_cvl_switch_filter.py
+++ b/tests/TestSuite_cvl_switch_filter.py
@@ -2487,7 +2487,7 @@ tvs_mac_ipv6_tcp_non_pipeline_mode = [
 
 test_results = OrderedDict()
 
-class SwitchFilterTest(TestCase):
+class CVLSwitchFilterTest(TestCase):
 
     def set_up_all(self):
         """
@@ -2506,6 +2506,7 @@ class SwitchFilterTest(TestCase):
         src_file = 'dep/testpmd_cmds_rte_flow_fdir_rules'
         self.dut_file_dir = '/tmp'
         self.dut.session.copy_file_to(src_file, self.dut_file_dir)
+        self.pkt = Packet()
 
     def set_up(self):
         """
-- 
2.17.1



More information about the dts mailing list