function dprint
NAME [edit section]
dprint
SYNOPSIS [edit section]
- dprint "message"
DESCRIPTION [edit section]
This function outputs the message, if the log level is set to 'debug' for the current area of Fuego test execution. See FUEGO_LOGLEVELS to see how the log level may be set.Any shell variable can be output as part of the message, as well as any information that might be helpful to debug the test execution.
This function will output the message, along with a prefix with the word DEBUG, and indicating the current execution phase.
EXAMPLES [edit section]
Here is a sample invocation:dprint "The board is currently: $NODE_NAME"
If this were in the 'test_deploy' function, this might output the following, during test execution:
DEBUG(deploy): The board is currently: raspberrypi
ENVIRONMENT and ARGUMENTS [edit section]
This function is controlled by the value of FUEGO_LOGLEVELS.
RETURN [edit section]
Returns 0
SOURCE [edit section]
Located in scripts/common.sh
SEE ALSO [edit section]