blob: 279f4ab76f97efd2898ef2a8be1e86f78247f83e [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
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012Upstream-Status: Pending
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013---
14 t/test.pl | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/t/test.pl b/t/test.pl
18index cda3840..af579a2 100644
19--- a/t/test.pl
20+++ b/t/test.pl
21@@ -174,7 +174,7 @@ sub skip_all_without_unicode_tables { # (but only under miniperl)
22
23 sub find_git_or_skip {
24 my ($source_dir, $reason);
25- if (-d '.git') {
26+ if (-d '.git' && ! -d 'debian') {
27 $source_dir = '.';
28 } elsif (-l 'MANIFEST' && -l 'AUTHORS') {
29 my $where = readlink 'MANIFEST';