buildtest.utils.tools

Module Contents

Functions

deep_get(dictionary, *keys)

checkColor(colorArg)

Checks the provided colorArg against the compatible colors from Rich.Color

check_binaries(binaries[, custom_dirs])

Check if binaries exist in $PATH and any additional directories specified by custom_dirs. The return is a dictionary

Attributes

logger

buildtest.utils.tools.logger
buildtest.utils.tools.deep_get(dictionary, *keys)[source]
buildtest.utils.tools.checkColor(colorArg)[source]

Checks the provided colorArg against the compatible colors from Rich.Color

buildtest.utils.tools.check_binaries(binaries, custom_dirs=None)[source]

Check if binaries exist in $PATH and any additional directories specified by custom_dirs. The return is a dictionary containing the binary name and full path to binary.

Parameters:
  • binaries (list) – list of binaries to check for existence in $PATH

  • custom_dirs (list, optional) – list of custom directories to check for binaries. Defaults to None.

Returns:

dictionary containing binary name and full path to binary

Return type:

dict