def add_to_papi_history(node, csit_papi_command, papi=True, **kwargs):
"""Add command to PAPI command history on DUT node.
def add_to_papi_history(node, csit_papi_command, papi=True, **kwargs):
"""Add command to PAPI command history on DUT node.
history_list = DICT__DUTS_PAPI_HISTORY[node['host']]
if not history_list:
history_list = ("No PAPI command executed", )
history_list = DICT__DUTS_PAPI_HISTORY[node['host']]
if not history_list:
history_list = ("No PAPI command executed", )
"{0} PAPI command history:\n{1}\n".format(
node['host'], "\n".join(history_list)))
"{0} PAPI command history:\n{1}\n".format(
node['host'], "\n".join(history_list)))