X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fnetwork_services%2Ftraffic_profile%2Fprox_binsearch.py;h=1fd6ec41a24068d4d9b50180e8c5d8edff6d6cfc;hb=1a86f049ec4d0a4371f2f0207cdf2db6d448af7e;hp=f98b1e59e00b5aaac749d8fe3463766861cab027;hpb=0e21cfca2c8cd9cf9d06480d0f6e0b8e7535808d;p=yardstick.git diff --git a/yardstick/network_services/traffic_profile/prox_binsearch.py b/yardstick/network_services/traffic_profile/prox_binsearch.py index f98b1e59e..1fd6ec41a 100644 --- a/yardstick/network_services/traffic_profile/prox_binsearch.py +++ b/yardstick/network_services/traffic_profile/prox_binsearch.py @@ -57,8 +57,6 @@ class ProxBinSearchProfile(ProxProfile): def run_test_with_pkt_size(self, traffic_gen, pkt_size, duration): """Run the test for a single packet size. - :param queue: queue object we put samples into - :type queue: Queue :param traffic_gen: traffic generator instance :type traffic_gen: TrafficGen :param pkt_size: The packet size to test with. @@ -86,8 +84,8 @@ class ProxBinSearchProfile(ProxProfile): # throughput and packet loss from the most recent successful test successful_pkt_loss = 0.0 for test_value in self.bounds_iterator(LOG): - result = traffic_gen.resource_helper.run_test(pkt_size, duration, - test_value, self.tolerated_loss) + result, port_samples = self._profile_helper.run_test(pkt_size, duration, + test_value, self.tolerated_loss) if result.success: LOG.debug("Success! Increasing lower bound") @@ -97,5 +95,5 @@ class ProxBinSearchProfile(ProxProfile): LOG.debug("Failure... Decreasing upper bound") self.current_upper = test_value - samples = result.get_samples(pkt_size, successful_pkt_loss) + samples = result.get_samples(pkt_size, successful_pkt_loss, port_samples) self.queue.put(samples)