Lines Matching +full:self +full:- +full:power
38 ) or BuiltIn().get_variable_value("${PLATFORM_ARCH_TYPE}", default="power")
76 # Pre-process the file by removing blank lines and comment lines.
80 cmd_buf = "egrep -v '^[ ]*$|^[ ]*#' " + file_path + " > " + temp_file_path
107 Return a list of all of the valid boot types (e.g. ['REST Power On', 'REST Power Off', ...]).
132 boot_lists[All][0]: REST Power On
133 boot_lists[All][1]: REST Power Off
167 boot_list An array (i.e. list) of boot test types (e.g. "REST Power On").
187 self, boot_table, boot_pass=0, boot_fail=0, obj_name="boot_results" argument
206 self.__obj_name = obj_name
207 self.__initial_boot_pass = boot_pass
208 self.__initial_boot_fail = boot_fail
213 self.__boot_results = tally_sheet(
216 self.__boot_results.set_sum_fields(["total", "pass", "fail"])
217 self.__boot_results.set_calc_fields(["total=pass+fail"])
221 self.__boot_results.add_row(boot_name)
223 def add_row(self, *args, **kwargs): argument
230 self.__boot_results.add_row(*args, **kwargs)
232 def return_total_pass_fail(self): argument
238 totals_line = self.__boot_results.calc()
240 totals_line["pass"] + self.__initial_boot_pass,
241 totals_line["fail"] + self.__initial_boot_fail,
244 def update(self, boot_type, boot_status): argument
247 - Updating the record for the given boot_type by incrementing the pass or fail field.
248 - Calling the calc method to have the totals calculated.
251 boot_type The type of boot test just done (e.g. "REST Power On").
253 or "fail" (case-insensitive).
256 self.__boot_results.inc_row_field(boot_type, boot_status.lower())
257 self.__boot_results.calc()
259 def sprint_report(self, header_footer="\n"): argument
261 String-print the formatted boot_resuls_table and return them.
271 buffer += self.__boot_results.sprint_report()
276 def print_report(self, header_footer="\n", quiet=None): argument
288 gp.qprint(self.sprint_report(header_footer))
290 def sprint_obj(self): argument
297 buffer += "class name: " + self.__class__.__name__ + "\n"
298 buffer += gp.sprint_var(self.__obj_name)
299 buffer += self.__boot_results.sprint_obj()
300 buffer += gp.sprint_var(self.__initial_boot_pass)
301 buffer += gp.sprint_var(self.__initial_boot_fail)
305 def print_obj(self): argument
310 gp.gp_print(self.sprint_obj())
349 gc.cmd_fnc("rm -f " + file_path)
359 …boot_start_message This is typically a time-stamped line of text announcing the start…
368 del boot_history[: max(0, len(boot_history) - max_boot_history)]