tests: Don't run commands with chronic if DEBUG is set

Don't suppress output with `chronic` when the user sets DEBUG

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-03-02 14:05:12 -05:00
parent 7a8e816ded
commit f3ab6d2666

View File

@ -230,7 +230,11 @@ silent_run()
{
typeset -a commandLine=("$@")
info "running: ${commandLine[@]}"
chronic "${commandLine[@]}"
if [ -z "${DEBUG:-}" ]; then
chronic "${commandLine[@]}"
else
"${commandLine[@]}"
fi
}