buildtest.main

Entry point for buildtest

Module Contents

Functions

main()

Entry point to buildtest.

setup(args)

This function sets up the environment for buildtest.

handle_log_viewing(args)

This function handles the viewing of the log file. If the user specifies --view-log or --print-log, this function will display the log file content and return True.

handle_build_command(args, configuration, report_file)

handle_buildspec_command(args, configuration, ...)

handle_inspect_command(args, configuration, report_file)

handle_cdash_command(args, configuration, report_file)

buildtest.main.main()[source]

Entry point to buildtest.

buildtest.main.setup(args)[source]

This function sets up the environment for buildtest. This function initializes logging, configuration, and system object. This function returns a tuple of system, configuration, buildtest_editor, and report_file. This function is called at the beginning of main() function.

Parameters:

args (argparse.Namespace) – An argparse namespace object containing command line arguments

Returns:

A tuple of system, configuration, buildtest_editor, and report_file

Return type:

Tuple

buildtest.main.handle_log_viewing(args)[source]

This function handles the viewing of the log file. If the user specifies –view-log or –print-log, this function will display the log file content and return True. If the log file is not present, this function will raise an exception. If the user does not specify –view-log or –print-log, this function will return False.

Parameters:

args (argparse.Namespace) – An argparse namespace object containing command line arguments

Returns:

Return True if user specifies –view-log or –print-log and implements logic, otherwise return False

Return type:

bool

buildtest.main.handle_build_command(args, configuration, report_file)[source]
buildtest.main.handle_buildspec_command(args, configuration, report_file, buildtest_editor)[source]
buildtest.main.handle_inspect_command(args, configuration, report_file)[source]
buildtest.main.handle_cdash_command(args, configuration, report_file)[source]