From a3399d07b83ce0e50d9c0144d00a7ba83a73390f Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 12 Apr 2018 15:08:58 +0100 Subject: Improve IXIA IxNetwork library and traffic profile (4) This patch implements an active wait for the traffic injection. Once the traffic is started, the traffic generator class will poll periodically the IXIA traffic generator chassis to retrieve the status of the traffic ("started", "stopped"). Now the latency statistics are retrieved and reported for each injection period. JIRA: YARDSTICK-1116 Change-Id: I4422e2c88b4fc97b7cac3de8a82b2d75467c4117 Signed-off-by: Rodolfo Alonso Hernandez Signed-off-by: Emma Foley --- tests/unit/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 5935abbac..95b2b8a4e 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -12,9 +12,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -from yardstick import tests +import sys + +import mock +from yardstick import tests # NOTE(ralonsoh): to be removed. Replace all occurrences of # tests.unit.STL_MOCKS with yardstick.tests.STL_MOCKS STL_MOCKS = tests.STL_MOCKS + +mock_stl = mock.patch.dict(sys.modules, tests.STL_MOCKS) +mock_stl.start() -- cgit 1.2.3-korg