X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=928144e058a784e476f58aa3fbf943e6b1540693;hp=03132844059aa1dc6e6ee2d6efa0a960f56d20fe;hb=2251c68ea3d862b08df030231a1ddf618a2cec2b;hpb=935734b04269b8fe5348e1c2b168dd5c6cd9339a diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index 0313284405..928144e058 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -20,12 +20,10 @@ from robot.api import logger from resources.libraries.python.Constants import Constants from resources.libraries.python.ssh import SSH, SSHTimeout +from resources.libraries.python.PapiHistory import PapiHistory __all__ = ["PapiExecutor", "PapiResponse"] -# TODO: Implement Papi History -# from resources.libraries.python.PapiHistory import PapiHistory - class PapiResponse(object): """Class for metadata specifying the Papi reply, stdout, stderr and return @@ -148,6 +146,7 @@ class PapiExecutor(object): :returns: self, so that method chaining is possible. :rtype: PapiExecutor """ + PapiHistory.add_to_papi_history(self._node, command, **kwargs) self._api_command_list.append(dict(api_name=command, api_args=kwargs)) return self