diff options
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.diff | 28 |
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 @@ | |||
| 1 | From 4d1b20bcec1610d22b718ffae154427a7a218632 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Niko Tyni <ntyni@debian.org> | ||
| 3 | Date: Fri, 22 Apr 2011 11:15:32 +0300 | ||
| 4 | Subject: Skip tests specific to the upstream Git repository | ||
| 5 | |||
| 6 | These tests fail if run from a different git repository than | ||
| 7 | upstream. This complicates things needlessly for downstream packagers. | ||
| 8 | |||
| 9 | Skip the tests altogether even if the .git directory exists. | ||
| 10 | |||
| 11 | Patch-Name: debian/skip-upstream-git-tests.diff | ||
| 12 | --- | ||
| 13 | t/test.pl | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/t/test.pl b/t/test.pl | ||
| 17 | index 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'; | ||
