summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-10-23 10:09:23 +0300
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-23 16:09:23 +0900
commit20fc56c02df3cab4d14dc630ac455eb8d630a638 (patch)
tree5f005ed9cfdad78211015ee3dbad8017e1b9a573 /test/test-functions
parent3deb28f20ac2405eebf4c61de8b8052c6d56ccf7 (diff)
downloadsystemd-20fc56c02df3cab4d14dc630ac455eb8d630a638.tar.gz
systemd-20fc56c02df3cab4d14dc630ac455eb8d630a638.tar.bz2
systemd-20fc56c02df3cab4d14dc630ac455eb8d630a638.zip
tests: allow passing log_level via an environment variable (#10490)
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions2
1 files changed, 1 insertions, 1 deletions
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