X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiHistory.py;h=c4ee4ee495d91081f163edbc8306401a37b6bbea;hb=bab0b570345ceb6ffeaec9e47a50e62d7303387e;hp=78279f559abbd6912dc06210739cdb41690a314d;hpb=2dc5924d35671c01e9aaa4ea6b9ae18bdd184ca8;p=csit.git diff --git a/resources/libraries/python/PapiHistory.py b/resources/libraries/python/PapiHistory.py index 78279f559a..c4ee4ee495 100644 --- a/resources/libraries/python/PapiHistory.py +++ b/resources/libraries/python/PapiHistory.py @@ -51,6 +51,8 @@ class PapiHistory(object): def add_to_papi_history(node, csit_papi_command, papi=True, **kwargs): """Add command to PAPI command history on DUT node. + Repr strings are used for argument values. + The argument name 'csit_papi_command' must be unique enough as it cannot be repeated in kwargs. @@ -84,7 +86,7 @@ class PapiHistory(object): if papi: args = list() for key, val in kwargs.iteritems(): - args.append("{key}={val}".format(key=key, val=val)) + args.append("{key}={val!r}".format(key=key, val=val)) item = "{cmd}({args})".format(cmd=csit_papi_command, args=",".join(args)) else: @@ -104,7 +106,7 @@ class PapiHistory(object): history_list = DICT__DUTS_PAPI_HISTORY[node['host']] if not history_list: history_list = ("No PAPI command executed", ) - logger.trace( + logger.info( "{0} PAPI command history:\n{1}\n".format( node['host'], "\n".join(history_list)))