diff options
author | gregor herrmann <gregoa@debian.org> | 2022-10-29 23:23:23 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2022-10-29 23:23:23 +0200 |
commit | 572d3e8060b3773433f22a645444f26dc1dad1dc (patch) | |
tree | 6c7ddd262b274043948407299d056a443c39ac50 | |
parent | b21594260bff3b9baf01dd138761b1c8e66cdb3d (diff) |
fix failing test
Origin: vendor
Bug-Debian: https://bugs.debian.org/906482
Forwarded: not-needed, cf. debian/patches/remove-convenience-libs
Last-Update: 2022-10-29
Patch out the expected libgit2 version from the test,
as the system library can have a different version.
Gbp-Pq: Name libgit2-version-tests
-rw-r--r-- | t/02-commit.t | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/t/02-commit.t b/t/02-commit.t index 4f88a7fd..13e3005c 100644 --- a/t/02-commit.t +++ b/t/02-commit.t @@ -231,6 +231,7 @@ isa_ok $diff2, 'Git::Raw::Diff'; 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> @@ -250,7 +251,7 @@ index 0000000..7b79d2f +this is a second test \\ No newline at end of file -- -libgit2 1.5.0 +libgit2 }; is $patch, $expected_patch; @@ -261,6 +262,7 @@ my $email_opts = { }; $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> @@ -280,7 +282,7 @@ index 0000000..7b79d2f +this is a second test \\ No newline at end of file -- -libgit2 1.5.0 +libgit2 }; is $patch, $expected_patch; @@ -290,6 +292,7 @@ $email_opts->{flags} = { }; $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> @@ -309,7 +312,7 @@ index 0000000..7b79d2f +this is a second test \\ No newline at end of file -- -libgit2 1.5.0 +libgit2 }; is $patch, $expected_patch; |