aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-15 10:38:39 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-15 11:15:21 +0000
commitbcae9f4ab8743c9d6886944108fe133816cb486d (patch)
tree73702cee8af3070d7c046d31c99ff3d8dfe9b6cd /t
parente2420f46582fb7761d04ed86c2201dd79a857e51 (diff)
downloadpbuilder-bcae9f4ab8743c9d6886944108fe133816cb486d.tar
pbuilder-bcae9f4ab8743c9d6886944108fe133816cb486d.tar.gz
make the output level configurable through LOGLEVEL (--loglevel)
valid values are D/I/W/E Closes: #490184
Diffstat (limited to 't')
-rwxr-xr-xt/test_pbuilder-modules2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test_pbuilder-modules b/t/test_pbuilder-modules
index 70504b0..dcc868b 100755
--- a/t/test_pbuilder-modules
+++ b/t/test_pbuilder-modules
@@ -1,6 +1,7 @@
#!/bin/bash
TD="$(dirname "$0")"
+LOGLEVEL=I
if [ -n "$PBUILDER_CHECKOUT" ]; then
. "$TD/testlib.sh"
. "$PBUILDER_CHECKOUT/pbuilder-modules"
@@ -21,6 +22,7 @@ expect_stderr "W: warning
E: error" test_information
function test_log() {
+ log.d "debug" # this should not be printed in LOGLEVEL=I (the default)
log.i "info"
log.w "warn"
log.e "error"