summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff')
-rw-r--r--meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff b/meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff
new file mode 100644
index 0000000000..7110298f04
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.20.0/debian/skip-upstream-git-tests.diff
@@ -0,0 +1,28 @@
1From 4d1b20bcec1610d22b718ffae154427a7a218632 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 22 Apr 2011 11:15:32 +0300
4Subject: Skip tests specific to the upstream Git repository
5
6These tests fail if run from a different git repository than
7upstream. This complicates things needlessly for downstream packagers.
8
9Skip the tests altogether even if the .git directory exists.
10
11Patch-Name: debian/skip-upstream-git-tests.diff
12---
13 t/test.pl | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/t/test.pl b/t/test.pl
17index 30db88c..0fdc4f4 100644
18--- a/t/test.pl
19+++ b/t/test.pl
20@@ -159,7 +159,7 @@ sub skip_all_without_config {
21
22 sub find_git_or_skip {
23 my ($source_dir, $reason);
24- if (-d '.git') {
25+ if (-d '.git' && ! -d 'debian') {
26 $source_dir = '.';
27 } elsif (-l 'MANIFEST' && -l 'AUTHORS') {
28 my $where = readlink 'MANIFEST';