2.11. run_tests module

class run_tests.AllResults

Bases: dict

add_result(result)
add_results(result)
all_failed
not_executed
print_results()
class run_tests.FilterByClassList(classes_with_filenames)

Bases: object

class run_tests.FilterByTestOption(filter_file_name, filter_class_name, filter_func_name)

Bases: object

class run_tests.SplitToSuitesCallback(filter_callback)

Bases: object

class run_tests.StreamQueue(maxsize=0, *, ctx)

Bases: multiprocessing.queues.Queue

fileno()
flush()
write(msg)
class run_tests.StreamQueueManager(address=None, authkey=None, serializer='pickle', ctx=None)

Bases: multiprocessing.managers.BaseManager

StreamQueue(*args, **kwds)
class run_tests.TestCaseWrapper(testcase_suite, manager)

Bases: object

add_testclass_with_core()
close_pipes()
last_test
was_successful()
class run_tests.TestResult(testcase_suite, testcases_by_id=None)

Bases: dict

get_testcase_names(test_id)
no_tests_run()
process_result(test_id, result)
suite_from_failed()
was_successful()
run_tests.check_and_handle_core(vpp_binary, tempdir, core_crash_test)
run_tests.filter_tests(tests, filter_cb)
run_tests.handle_cores(failed_testcases)
run_tests.handle_failed_suite(logger, last_test_temp_dir, vpp_pid)
run_tests.parse_digit_env(env_var, default)
run_tests.parse_results(results)

Prints the number of scheduled, executed, not executed, passed, failed, errored and skipped tests and details about failed and errored tests.

Also returns all suites where any test failed.

Parameters

results

Returns

run_tests.parse_test_option()
run_tests.process_finished_testsuite(wrapped_testcase_suite, finished_testcase_suites, failed_wrapped_testcases, results)
run_tests.run_forked(testcase_suites)
run_tests.stdouterr_reader_wrapper(unread_testcases, finished_unread_testcases, read_testcases)
run_tests.suite_from_failed(suite, failed)
run_tests.test_runner_wrapper(suite, keep_alive_pipe, stdouterr_queue, finished_pipe, result_pipe, logger)