From: Evgeny Vereshchagin Date: Tue, 23 Oct 2018 07:09:23 +0000 (+0300) Subject: tests: allow passing log_level via an environment variable (#10490) X-Git-Tag: v240~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20fc56c02df3cab4d14dc630ac455eb8d630a638;p=thirdparty%2Fsystemd.git tests: allow passing log_level via an environment variable (#10490) --- diff --git a/test/test-functions b/test/test-functions index 88e66fd72e3..49c444e52b7 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