mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00: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:
parent
7a8e816ded
commit
f3ab6d2666
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user