STF API: fix latency check after it was not checked in previous run 61/5361/1
authorYaroslav Brustinov <[email protected]>
Sun, 15 Jan 2017 04:31:23 +0000 (06:31 +0200)
committerYaroslav Brustinov <[email protected]>
Sun, 15 Jan 2017 04:31:23 +0000 (06:31 +0200)
Change-Id: Ic8cd116bc29c991abff9837e9da4ef0ea37bb497
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py

index 0977d2e..2b88038 100755 (executable)
@@ -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