[libconfig-model-dpkg-perl] 07/08: fix test failure that occur only in gbp or pbuilder...

dod at debian.org dod at debian.org
Wed Mar 8 19:54:39 UTC 2017


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 <dod at 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} ||= 'johndoe at 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



More information about the Pkg-perl-cvs-commits mailing list