From 734ce41c65a49b0a74b515c7d9c6a2b888bbddb9 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Sun, 15 Jan 2017 06:31:23 +0200 Subject: STF API: fix latency check after it was not checked in previous run Change-Id: Ic8cd116bc29c991abff9837e9da4ef0ea37bb497 Signed-off-by: Yaroslav Brustinov --- scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/automation') diff --git a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py index 0977d2eb..2b880389 100755 --- a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py +++ b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py @@ -154,8 +154,7 @@ class CTRexClient(object): raise ValueError('d parameter must be integer, specifying how long TRex run.') trex_cmd_options.update( {'f' : f, 'd' : d} ) - if not trex_cmd_options.get('l'): - self.result_obj.latency_checked = False + self.result_obj.latency_checked = 'l' in trex_cmd_options if 'k' in trex_cmd_options: timeout += int(trex_cmd_options['k']) # during 'k' seconds TRex stays in 'Starting' state -- cgit 1.2.3-korg