From 20fc56c02df3cab4d14dc630ac455eb8d630a638 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Tue, 23 Oct 2018 10:09:23 +0300 Subject: [PATCH] tests: allow passing log_level via an environment variable (#10490) --- test/test-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-functions b/test/test-functions index 88e66fd72e..49c444e52b 100644 --- a/test/test-functions +++ b/test/test-functions @@ -782,7 +782,7 @@ _lvl2char() { # This enables: # dwarn "This is a warning" # echo "This is a warning" | dwarn -LOG_LEVEL=4 +LOG_LEVEL=${LOG_LEVEL:-4} dlog() { [ -z "$LOG_LEVEL" ] && return 0