This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 33f851aa712b71acfe012e16d7cb9043a726a683
Author: Dominique Dumont <d...@debian.org>
Date:   Wed Mar 8 20:37:18 2017 +0100

    fix test failure that occur only in gbp or pbuilder...
    
    see comment for explanation
---
 t/model_tests.d/dpkg-test-conf.pl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/t/model_tests.d/dpkg-test-conf.pl 
b/t/model_tests.d/dpkg-test-conf.pl
index 7ba8579..3d25c7f 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -11,6 +11,15 @@ $model_to_test  = "Dpkg";
 eval { require AptPkg::Config; };
 $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
 
+# required to set value that enable creation of dummy changelog:
+# changelog is computed from my_config email and name which are also
+# computed from environment variable. If any of these var is undef,
+# the my_config value are undef, and the changelog is also undef. In
+# this case, the changalog file is not written and the tests that
+# expect a new changelog file also fail.. Kind of domino effect
+$ENV{DEBFULLNAME} ||= "John Doe";
+$ENV{DEBEMAIL} ||= 'john...@naibed.gro';
+
 my %add_map = (
     # Works also on Windows
     home => File::HomeDir->my_home."/.dpkg-meta.yml",

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to