X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiHistory.py;h=c4ee4ee495d91081f163edbc8306401a37b6bbea;hb=20cc67d5f23a7f4e05b08012bf3d3a63be4bcf63;hp=6a4f913d0389d316f287c593965e3907c16586ee;hpb=cc0c2870a18fb74a56410eca2d1870bddc945397;p=csit.git diff --git a/resources/libraries/python/PapiHistory.py b/resources/libraries/python/PapiHistory.py index 6a4f913d03..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: