summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stf
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-01-15 06:31:23 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-01-15 06:31:23 +0200
commit734ce41c65a49b0a74b515c7d9c6a2b888bbddb9 (patch)
treee019eaa1fe7a51455ff9a83c27f3f6d0f5f5f8cb /scripts/automation/trex_control_plane/stf
parent98aa75296d8fd844608c6bfd3854ff1cf119f6ad (diff)
STF API: fix latency check after it was not checked in previous run
Change-Id: Ic8cd116bc29c991abff9837e9da4ef0ea37bb497 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stf')
-rwxr-xr-xscripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py3
1 files changed, 1 insertions, 2 deletions
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