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 6d97a2263e5a6edcac4acd5ed184e2c1d25c6f75
Author: Dominique Dumont <d...@debian.org>
Date:   Wed Jan 18 16:42:42 2017 +0100

    test that patch subject or description is written first
---
 t/model_tests.d/dpkg-patch-test-conf.pl | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/model_tests.d/dpkg-patch-test-conf.pl 
b/t/model_tests.d/dpkg-patch-test-conf.pl
index 92a5cd7..1c30af6 100644
--- a/t/model_tests.d/dpkg-patch-test-conf.pl
+++ b/t/model_tests.d/dpkg-patch-test-conf.pl
@@ -34,6 +34,10 @@ $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
         config_file => $conf_file_name,
         check => {
             'Synopsis' => qr/Configure.pl/,
+        },
+        # check that subject stays first field
+        file_contents_like => {
+            "$conf_dir/$conf_file_name" => [ qr/^Subject/ ] ,
         }
     },
     {
@@ -43,6 +47,10 @@ $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
         check => {
             Description => qr/enhance/,
             diff => qr/@@ -7,7/
+        },
+        # check that description is first field
+        file_contents_like => {
+            "$conf_dir/$conf_file_name" => [ qr/^Description/ ] ,
         }
 
     },

-- 
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