[pbuilder] 02/02: tests!
Mattia Rizzolo
mattia at debian.org
Sun Jul 24 18:39:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch colors
in repository pbuilder.
commit 502d7b3790791324932507904e99dfc10c04264a
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Jul 24 18:38:48 2016 +0000
tests!
---
t/test_pbuilder-modules | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/t/test_pbuilder-modules b/t/test_pbuilder-modules
index dcc868b..18b6e74 100755
--- a/t/test_pbuilder-modules
+++ b/t/test_pbuilder-modules
@@ -2,6 +2,7 @@
TD="$(dirname "$0")"
LOGLEVEL=I
+USECOLORS=no
if [ -n "$PBUILDER_CHECKOUT" ]; then
. "$TD/testlib.sh"
. "$PBUILDER_CHECKOUT/pbuilder-modules"
@@ -32,6 +33,20 @@ W: warn
E: error" test_log
expect_stderr "W: warn
E: error" test_log
+LOGLEVEL=D
+expect_output "D: debug
+I: info
+W: warn
+E: error" test_log
+USECOLORS=yes
+expect_output "$(printf "\033[0;34mD: debug\033[0m
+\033[0mI: info\033[0m
+\033[1;33mW: warn\033[0m
+\033[0;31mE: error\033[0m")" test_log
+
+# return to regular/stable output
+LOGLEVEL=I
+USECOLORS=no
# test the non-copy case
function test_conditional_cp_a() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list