def suite_teardown(): r""" Clean up after this program. """ gp.qprint_pgm_footer()
def test_teardown(): r""" Clean up after this test case. """ gp.qprintn() cmd_buf = [ "Print Error", "A keyword timeout occurred ending this program.\n" ] BuiltIn().run_keyword_if_timeout_occurred(*cmd_buf) gp.qprint_pgm_footer()
def gen_exit_function(signal_number=0, frame=None): r""" Execute whenever the program ends normally or with the signals that we catch (i.e. TERM, INT). """ gp.dprint_executing() gp.dprint_var(signal_number) # Call the main module's exit_function if it is defined. exit_function = getattr(module, "exit_function", None) if exit_function: exit_function(signal_number, frame) gp.qprint_pgm_footer()
def test_teardown(): r""" Clean up after this test case. """ gp.qprintn() gp.qprint_executing() if ga.psutil_imported: ga.terminate_descendants() cmd_buf = ["Print Error", "A keyword timeout occurred ending this program.\n"] BuiltIn().run_keyword_if_timeout_occurred(*cmd_buf) gp.qprint_pgm_footer()
def gen_exit_function(): r""" Execute whenever the program ends normally or with the signals that we catch (i.e. TERM, INT). """ # ignore_err influences the way shell_cmd processes errors. Since we're doing exit processing, we don't # want to stop the program due to a shell_cmd failure. ignore_err = 1 if psutil_imported and term_options: terminate_descendants() # Call the main module's exit_function if it is defined. exit_function = getattr(module, "exit_function", None) if exit_function: exit_function() gp.qprint_pgm_footer()
def gen_exit_function(signal_number=0, frame=None): r""" Execute whenever the program ends normally or with the signals that we catch (i.e. TERM, INT). """ gp.dprint_executing() gp.dprint_var(signal_number) # ignore_err influences the way shell_cmd processes errors. Since we're doing exit processing, we don't # want to stop the program due to a shell_cmd failure. ignore_err = 1 # Call the main module's exit_function if it is defined. exit_function = getattr(module, "exit_function", None) if exit_function: exit_function(signal_number, frame) gp.qprint_pgm_footer()