buildtest.cli.history
¶
Module Contents¶
Functions¶
|
This is the entry point for command |
|
This method is used for alpha numeric sorting of files. |
|
This method is entry point for |
|
This method is called when user runs buildtest history query which will |
Attributes¶
- buildtest.cli.history.logger¶
- buildtest.cli.history.build_history(args)[source]¶
This is the entry point for command
buildtest build history
command which reports- Parameters
args (dict) – Parsed arguments from ArgumentParser.parse_args
- buildtest.cli.history.sorted_alphanumeric(data)[source]¶
This method is used for alpha numeric sorting of files.
- Parameters
data – A list of history files to sort alpha numerically
- Returns
sorted list of history files alphanumerically
- Return type
- buildtest.cli.history.list_build_history(no_header=None, terse=None, pager=None, color=None)[source]¶
This method is entry point for
buildtest history list
which prints all previous builds stored in BUILD_HISTORY_DIR. Each directory has abuild.json
file that stores content of each build that was run bybuildtest build
.
- buildtest.cli.history.query_builds(build_id, log_option, output)[source]¶
This method is called when user runs buildtest history query which will report the build.json and logfile.
- Parameters
build_id (int) – Build Identifier which is used for querying history file. The indentifier is an integer starting from 0
log_option (bool) – Option to control whether log file is opened in editor. This is specified via
buildtest history query -l <id>
output (bool) – Display output.txt file which contains output of
buildtest build
command. This is passed viabuildtest history query -o