diff options
author | 2016-12-12 16:27:44 +0200 | |
---|---|---|
committer | 2016-12-19 11:23:47 +0200 | |
commit | ac3784a3bad416d45b93cb17be551726e08c545d (patch) | |
tree | e80c96dcd69490665f11fac37b02033d6af46624 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | e4c8e44b0842093ce2a245e863a8db7f4c2ae9ff (diff) |
STL API: fix split batch to chunks - don't stop at chunk with error, return all the result, not just error in case of error.
Change-Id: I50162301054500585ecfffcdaad78992cfda9b0e
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py index 51e93f5a..72c9317a 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py @@ -45,18 +45,12 @@ class BatchMessage(object): new_batch.append(msg) if size > chunk_size: batch_json = json.dumps(new_batch) - response = self.rpc_client.send_msg(batch_json) - if not response: - return response - response_batch.add(response) + response_batch.add(self.rpc_client.send_msg(batch_json)) size = 0 new_batch = [] if new_batch: batch_json = json.dumps(new_batch) - response = self.rpc_client.send_msg(batch_json) - if not response: - return response - response_batch.add(response) + response_batch.add(self.rpc_client.send_msg(batch_json)) return response_batch else: batch_json = json.dumps(self.batch_list) |