[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.10-219-gc126826



The following commit has been merged in the master branch:
commit c126826f5b91529ced3c4ba35ecd5e0934b43ab9
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Oct 22 11:26:12 2012 +0200

    T::L + needs-info-exists.t: Fix a few trivial mistakes
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Test/Lintian.pm b/lib/Test/Lintian.pm
index bd9b019..834abb3 100644
--- a/lib/Test/Lintian.pm
+++ b/lib/Test/Lintian.pm
@@ -149,7 +149,7 @@ sub test_check_desc {
             $builder->is_eq (join (', ', @bad), '', '$cname has unknown collections in Needs-Info');
         } else {
             $builder->ok (1, 'Tag has a valid Needs-Info (empty)') if $colldir ne '';
-            $builder->skip ('Needs-Info test checks due to empty coll-dir') if $needs ne '';
+            $builder->skip ('Needs-Info test checks skipped due to empty coll-dir') if $needs ne '';
         }
 
         $builder->is_eq (check_spelling (undef, $cinfo), 0,
@@ -243,7 +243,7 @@ sub test_load_profiles {
         $err = $@;
 
         $builder->ok ($prof, "$profname is loadable.")
-            or $builder->diag ("Load error: $@\n");
+            or $builder->diag ("Load error: $err\n");
     };
 
     File::Find::find (\%opt, $absdir);
diff --git a/t/scripts/needs-info-exists.t b/t/scripts/needs-info-exists.t
index 86de157..6b6ac6b 100755
--- a/t/scripts/needs-info-exists.t
+++ b/t/scripts/needs-info-exists.t
@@ -25,7 +25,7 @@ use Lintian::Util qw(read_dpkg_control);
 # Find all of the desc files in collection.  We'll do one check per
 # description.  We don't check checks/*.desc because check-desc.t
 # handles that.
-our @DESCS = (<$ENV{LINTIAN_ROOT}/collection/*.desc>):
+our @DESCS = (<$ENV{LINTIAN_ROOT}/collection/*.desc>);
 plan tests => scalar(@DESCS);
 
 # For each desc file, load the first stanza of the file and check that all of

-- 
Debian package checker


Reply to: