From f3ab6d26666e48b2dfa969d964b8b91ac0fac5b5 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 2 Mar 2020 14:05:12 -0500 Subject: [PATCH] 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 --- tests/test_images.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index 4450f4e7d..0ad6ee029 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -230,7 +230,11 @@ silent_run() { typeset -a commandLine=("$@") info "running: ${commandLine[@]}" - chronic "${commandLine[@]}" + if [ -z "${DEBUG:-}" ]; then + chronic "${commandLine[@]}" + else + "${commandLine[@]}" + fi }