buildtest.cli

buildtest cli: include functions to build, get test configurations, and interact with a global configuration for buildtest.

Package Contents

Functions

build_menu(subparsers)

This method implements command line menu for buildtest build command.

buildspec_menu(subparsers)

This method implements buildtest buildspec command

cdash_menu(subparsers)

This method builds arguments for buildtest cdash command.

config_menu(subparsers)

This method adds argparse argument for buildtest config

get_parser()

handle_kv_string(val)

This method is used as type field in –filter argument in buildtest buildspec find.

history_menu(subparsers)

This method builds the command line menu for buildtest history command

inspect_menu(subparsers)

This method builds argument for buildtest inspect command

positive_number(value)

Checks if input value is positive value and within range of 1-50. This method

report_menu(subparsers)

This method implements the buildtest report command options

schema_menu(subparsers)

This method builds menu for buildtest schema

single_kv_string(val)

This method is used for filter field in buildtest build --filter.

Attributes

BUILDTEST_COPYRIGHT

BUILDTEST_VERSION

BUILD_REPORT

schema_table

buildtest.cli.BUILDTEST_VERSION = 0.10.1
buildtest.cli.BUILD_REPORT
buildtest.cli.build_menu(subparsers)

This method implements command line menu for buildtest build command.

buildtest.cli.buildspec_menu(subparsers)

This method implements buildtest buildspec command

buildtest.cli.cdash_menu(subparsers)

This method builds arguments for buildtest cdash command.

buildtest.cli.config_menu(subparsers)

This method adds argparse argument for buildtest config

buildtest.cli.get_parser()
buildtest.cli.handle_kv_string(val)

This method is used as type field in –filter argument in buildtest buildspec find. This method returns a dict of key,value pair where input is in format key1=val1,key2=val2,key3=val3

Parameters
  • val (bool) – input value

  • multiple_keys – multiple_keys is a boolean to determine if key/value pair accepts multiple key/value arguments

Returns

dictionary of key/value pairs

Return type

dict

buildtest.cli.history_menu(subparsers)

This method builds the command line menu for buildtest history command

buildtest.cli.inspect_menu(subparsers)

This method builds argument for buildtest inspect command

buildtest.cli.positive_number(value)

Checks if input value is positive value and within range of 1-50. This method is used for –rebuild option

buildtest.cli.report_menu(subparsers)

This method implements the buildtest report command options

buildtest.cli.schema_menu(subparsers)

This method builds menu for buildtest schema

buildtest.cli.schema_table
buildtest.cli.single_kv_string(val)

This method is used for filter field in buildtest build --filter. This method returns a dict of key/value pair where input must be a single key/value pair

Parameters

val (str) – input value

Returns

dictionary of key/value pairs

Return type

dict