From 7d5ff45a3b793f5e50b4a32b2438ab11fed6c899 Mon Sep 17 00:00:00 2001 From: DanielMartinBuckley Date: Mon, 10 Sep 2018 19:02:10 +0100 Subject: NSB PROX NFVi Test does not stop after reaching expected precision JIRA: YARDSTICK-1419 When using prox_binsearch algorithm, a binary search is performed, increasing lower bound when step was successful and decreasing upper bound when the step was a failure. This runs until the test_precision (as specified in the traffic profile) is reached. When the test precision is reached, the test is not completed until the runner duration is reached. As runner duration is usually high (e.g. 1800sec), the tests take much too long to execute. This makes it difficult to create test suites. Change-Id: I6cc503a09fb534a556c61c805e6df4786bb8cc4b Signed-off-by: Daniel Martin Buckley --- yardstick/network_services/traffic_profile/base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yardstick/network_services/traffic_profile/base.py') diff --git a/yardstick/network_services/traffic_profile/base.py b/yardstick/network_services/traffic_profile/base.py index 4fbceea9b..ea3f17874 100644 --- a/yardstick/network_services/traffic_profile/base.py +++ b/yardstick/network_services/traffic_profile/base.py @@ -97,6 +97,9 @@ class TrafficProfile(object): self.params = tp_config self.config = TrafficProfileConfig(tp_config) + def is_ended(self): + return False + def execute_traffic(self, traffic_generator, **kawrgs): """ This methods defines the behavior of the traffic generator. It will be called in a loop until the traffic generator exits. -- cgit 1.2.3-korg