The following commit has been merged in the master branch:
commit ad4982bf4f5fd0f18932c29bca8f0f8dd9a472d7
Author: Niels Thykier <[email protected]>
Date:   Thu Mar 24 22:55:48 2011 +0100

    Skip changelog-format.t test on Ubuntu

diff --git a/t/scripts/changelog-format.t b/t/scripts/changelog-format.t
index f9beea9..559f3b1 100755
--- a/t/scripts/changelog-format.t
+++ b/t/scripts/changelog-format.t
@@ -27,6 +27,8 @@ use Parse::DebianChangelog;
 my $changelog = Parse::DebianChangelog->init({ infile => 'debian/changelog' })
                or BAIL_OUT('fatal error while loading parser');
 
+plan skip_all => 'Only valid for Debian releases'
+    if should_skip($changelog);
 my $changes = $changelog->dpkg()->{'Changes'};
 my $line = 0;
 my $prev_head = '';
@@ -92,3 +94,9 @@ foreach (split /\n/,$changes) {
 }
 
 done_testing();
+
+sub should_skip{
+    my ($changelog) = @_;
+    return $changelog->dpkg->{'Version'} =~ m/ubuntu/;
+}
+

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to