buildtest.cli.inspect

This module implements methods for buildtest inspect command that can be used to retrieve test record from report file in JSON format.

Module Contents

Functions

inspect_cmd(args)

Entry point for buildtest inspect command

inspect_list(report, terse=None, header=None, builder=None)

This method list an output of test id, name, and buildspec file from the report cache. The default

inspect_query(report, args)

Entry point for buildtest inspect query command.

inspect_buildspec(report, input_buildspecs, all_records)

This method implements command buildtest inspect buildspec

inspect_by_name(report, names, all_records)

Implements command buildtest inspect name which will print all test records by given name in JSON format.

inspect_by_id(report, args)

This method implements buildtest inspect id command

buildtest.cli.inspect.inspect_cmd(args)[source]

Entry point for buildtest inspect command

Parameters

args (dict) – Parsed arguments from ArgumentParser.parse_args

buildtest.cli.inspect.inspect_list(report, terse=None, header=None, builder=None)[source]

This method list an output of test id, name, and buildspec file from the report cache. The default behavior is to display output in table format though this can be changed with terse format which will display in parseable format. This method implements command buildtest inspect list

Parameters
  • report (str) – Path to report file

  • terse (bool, optional) – Print output in terse format

  • header (bool, optional) – Determine whether to print header in terse format.

  • builder (bool, optional) – Print output in builder format which can be done via buildtest inspect list --builder

buildtest.cli.inspect.inspect_query(report, args)[source]

Entry point for buildtest inspect query command.

Parameters
buildtest.cli.inspect.inspect_buildspec(report, input_buildspecs, all_records)[source]

This method implements command buildtest inspect buildspec

Parameters
  • report (str) – Path to report file

  • input_buildspecs (list) – List of buildspecs to search in report file. This is specified as positional arguments to buildtest inspect buildspec

  • all_records (bool) – Determine whether to display all records for every test that matches the buildspec. By default we retrieve the latest record.

buildtest.cli.inspect.inspect_by_name(report, names, all_records)[source]

Implements command buildtest inspect name which will print all test records by given name in JSON format.

Parameters
  • report (str) – Path to report file

  • names (list) – List of test names to search in report file. This is specified as positional arguments to buildtest inspect name

  • all_records (bool) – Determine whether to display all records for every test that matches the buildspec. By default we retrieve the latest record.

buildtest.cli.inspect.inspect_by_id(report, args)[source]

This method implements buildtest inspect id command