diff options
author | 2015-12-16 12:19:52 +0200 | |
---|---|---|
committer | 2015-12-16 12:19:52 +0200 | |
commit | a1fbf1730da1b7db6270cd9aa84fa1c63f3f3932 (patch) | |
tree | 1a870baaf99262e13476f5d3ea9c0be696c469b8 /scripts/automation/trex_control_plane/client | |
parent | 31b92c62f1ce84ba44c9fdf6c2f12ae51655f86c (diff) | |
parent | f0919e280a6a7b74a52f05b8e6f591e1b7e08200 (diff) |
Merge from master
Diffstat (limited to 'scripts/automation/trex_control_plane/client')
-rwxr-xr-x | scripts/automation/trex_control_plane/client/trex_client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_client.py b/scripts/automation/trex_control_plane/client/trex_client.py index a8669011..5709b7a5 100755 --- a/scripts/automation/trex_control_plane/client/trex_client.py +++ b/scripts/automation/trex_control_plane/client/trex_client.py @@ -125,7 +125,7 @@ class CTRexClient(object): user = user or self.__default_user try: d = int(d) - if d < 30 and not trex_development: # specify a test should take at least 30 seconds long. + if d < 30 and not trex_development: # test duration should be at least 30 seconds, unless trex_development flag is specified. raise ValueError except ValueError: raise ValueError('d parameter must be integer, specifying how long TRex run, and must be larger than 30 secs.') @@ -133,6 +133,8 @@ class CTRexClient(object): trex_cmd_options.update( {'f' : f, 'd' : d} ) if not trex_cmd_options.get('l'): self.result_obj.latency_checked = False + if 'k' in trex_cmd_options: + timeout += int(trex_cmd_options['k']) # during 'k' seconds TRex stays in 'Starting' state self.result_obj.clear_results() try: |