blob: 4c87104cce90b6f20bf6c35e1dddcafbde10276f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From ae9b645d6da2990fd055368eca2c67c449474e38 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 cda3840..af579a2 100644
18--- a/t/test.pl
19+++ b/t/test.pl
20@@ -174,7 +174,7 @@ sub skip_all_without_unicode_tables { # (but only under miniperl)
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';