diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 10:38:39 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 11:15:21 +0000 |
commit | bcae9f4ab8743c9d6886944108fe133816cb486d (patch) | |
tree | 73702cee8af3070d7c046d31c99ff3d8dfe9b6cd /t | |
parent | e2420f46582fb7761d04ed86c2201dd79a857e51 (diff) | |
download | pbuilder-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-x | t/test_pbuilder-modules | 2 |
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" |