Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From ae9b645d6da2990fd055368eca2c67c449474e38 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 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'; |