def get_trex_log (self):
"""
Get TRex CLI output log
:return:
String representation of TRex log
:raises:
+ :exc:`trex_exceptions.TRexRequestDenied`, in case file could not be fetched at server side.
+ ProtocolError, in case of error in JSON-RPC protocol.
"""
try:
res = binascii.a2b_base64(self.server.get_trex_log())
if type(res) is bytes:
return res.decode()
return res
except AppError as err:
self._handle_AppError_exception(err.args[0])
except ProtocolError:
raise
finally:
self.prompt_verbose_data()
评论列表
文章目录