buildtest.main
Entry point for buildtest
Module Contents
Functions
|
Entry point to buildtest. |
|
This function sets up the environment for buildtest. |
|
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. |
|
|
|
|
|
|
|
- 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: