def h_collect_sel(self): cmd = "{0} sel elist &> {1}".format(IPMITOOL, SEL_log) message = "Collect SEL" status, output = CMM.run_cmd(cmd) CMM.save_data(Main_log, "{0}\nreturncode: {1}\n{2}".format(cmd, status, output)) if status == 0: show_step_result(message, flag="PASS") CMM.save_step_result(Main_log, message, flag="PASS") else: show_step_result(message, flag="FAIL") CMM.save_step_result(Main_log, message, flag="FAIL") CMM.save_step_result(Error_log, message, flag="FAIL")
def b_clear_sel(self): cmd = "{0} sel clear".format(IPMITOOL) message = "Clean SEL" status, output = CMM.run_cmd(cmd) CMM.save_data(Main_log, "{0}\nreturncode: {1}\n{2}".format(cmd, status, output)) if status == 0: show_step_result(message, flag="PASS") CMM.save_step_result(Main_log, message, flag="PASS") else: show_step_result(message, flag="FAIL") CMM.save_step_result(Main_log, message, flag="FAIL") CMM.save_step_result(Error_log, message, flag="FAIL")