]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: allow passing log_level via an environment variable (#10490)
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 23 Oct 2018 07:09:23 +0000 (10:09 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 07:09:23 +0000 (16:09 +0900)
test/test-functions

index 88e66fd72e3ad80228d3951fd1ddde644f3c6e7e..49c444e52b7265c89c0ce33105edf91811d4f758 100644 (file)
@@ -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