diff mbox series

[V1,3/6] tests/pvp_multi_paths_vhost_single_core_performance: check expected value from config file

Message ID 20210914023545.2306013-1-weix.ling@intel.com (mailing list archive)
State New
Headers show
Series check expected value from config file | expand

Commit Message

Ling, WeiX Sept. 14, 2021, 2:35 a.m. UTC
Check expected value from config file and remove the check_value method.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 ..._pvp_multi_paths_vhost_single_core_performance.py | 12 ------------
 1 file changed, 12 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
index d26b2719..988e588c 100644
--- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
+++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
@@ -104,15 +104,6 @@  class TestPVPMultiPathVhostPerformance(TestCase):
         self.test_result = {}
         self.nb_desc = self.test_parameters[64][0]
 
-    @property
-    def check_value(self):
-        check_dict = dict.fromkeys(self.frame_sizes)
-        linerate = {64: 0.085, 128: 0.12, 256: 0.20, 512: 0.35, 1024: 0.50, 1280: 0.55, 1518: 0.60}
-        for size in self.frame_sizes:
-            speed = self.wirespeed(self.nic, size, self.number_of_ports)
-            check_dict[size] = round(speed * linerate[size], 2)
-        return check_dict
-
     def send_and_verify(self, case_info):
         """
         Send packet with packet generator and verify
@@ -137,9 +128,6 @@  class TestPVPMultiPathVhostPerformance(TestCase):
             streams = self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100, None, self.tester.pktgen)
             _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams)
             Mpps = pps / 1000000.0
-            self.verify(Mpps > self.check_value[frame_size],
-                        "%s of frame size %d speed verify failed, expect %s, result %s" % (
-                        self.running_case, frame_size, self.check_value[frame_size], Mpps))
             linerate = Mpps * 100 / \
                          float(self.wirespeed(self.nic, frame_size, self.number_of_ports))
             self.throughput[frame_size][self.nb_desc] = Mpps