mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-30 11:44:26 +01:00
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:
@@ -230,7 +230,11 @@ silent_run()
|
|||||||
{
|
{
|
||||||
typeset -a commandLine=("$@")
|
typeset -a commandLine=("$@")
|
||||||
info "running: ${commandLine[@]}"
|
info "running: ${commandLine[@]}"
|
||||||
chronic "${commandLine[@]}"
|
if [ -z "${DEBUG:-}" ]; then
|
||||||
|
chronic "${commandLine[@]}"
|
||||||
|
else
|
||||||
|
"${commandLine[@]}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user