1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
Description: fix failing test
Patch out the expected libgit2 version from the test,
as the system library can have a different version.
Origin: vendor
Bug-Debian: https://bugs.debian.org/906482
Forwarded: not-needed, cf. debian/patches/remove-convenience-libs
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-08-18
--- a/t/02-commit.t
+++ b/t/02-commit.t
@@ -227,6 +227,7 @@
my $commit2_id = $commit2 -> id;
my $patch = "\n".join("\n", grep { $_ !~ /^Date/ } split (/\n/, $commit2 -> as_email))."\n";
+$patch =~ s/(libgit2) [0-9.]+/$1/;
my $expected_patch = qq{
From $commit2_id Mon Sep 17 00:00:00 2001
From: Git::Raw author <git-xs\@example.com>
@@ -246,7 +247,7 @@
+this is a second test
\\ No newline at end of file
--
-libgit2 0.27.0
+libgit2
};
is $patch, $expected_patch;
@@ -257,6 +258,7 @@
};
$patch = "\n".join("\n", grep { $_ !~ /^Date/ } split (/\n/, $commit2 -> as_email($email_opts, {})))."\n";
+$patch =~ s/(libgit2) [0-9.]+/$1/;
$expected_patch = qq{
From $commit2_id Mon Sep 17 00:00:00 2001
From: Git::Raw author <git-xs\@example.com>
@@ -276,7 +278,7 @@
+this is a second test
\\ No newline at end of file
--
-libgit2 0.27.0
+libgit2
};
is $patch, $expected_patch;
@@ -286,6 +288,7 @@
};
$patch = "\n".join("\n", grep { $_ !~ /^Date/ } split (/\n/, $commit2 -> as_email($email_opts)))."\n";
+$patch =~ s/(libgit2) [0-9.]+/$1/;
$expected_patch = qq{
From $commit2_id Mon Sep 17 00:00:00 2001
From: Git::Raw author <git-xs\@example.com>
@@ -305,7 +308,7 @@
+this is a second test
\\ No newline at end of file
--
-libgit2 0.27.0
+libgit2
};
is $patch, $expected_patch;
|