Improve test tag string parsing
[csit.git] / resources / libraries / python / PapiExecutor.py
index d651e78..0e0a933 100644 (file)
@@ -442,13 +442,13 @@ class PapiSocketExecutor(object):
         cmd = 'cli_inband'
         args = dict(cmd=cli_cmd)
         err_msg = "Failed to run 'cli_inband {cmd}' PAPI command on host " \
-                  "{host}".format(host=node['host'], cmd=cmd)
+                  "{host}".format(host=node['host'], cmd=cli_cmd)
         with PapiSocketExecutor(node, remote_vpp_socket) as papi_exec:
             reply = papi_exec.add(cmd, **args).get_reply(err_msg)["reply"]
         if log:
             logger.info(
                 "{cmd} ({host} - {remote_vpp_socket}):\n{reply}".
-                format(cmd=cmd, reply=reply,
+                format(cmd=cmd, reply=reply.encode('utf-8').strip(),
                        remote_vpp_socket=remote_vpp_socket, host=node['host']))
         return reply