1
0
mirror of synced 2026-04-25 20:11:20 +00:00

Run t/gitignore.t only if git is installed and .git present

This commit is contained in:
Axel Beckert
2013-10-29 00:09:03 +01:00
parent e1caf2566a
commit 81511000d8
2 changed files with 14 additions and 2 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
xen-tools (4.4~rc2-1) UNRELEASED; urgency=low
* Run t/gitignore.t only if git is installed and .git present.
-- Axel Beckert <abe@debian.org> Tue, 29 Oct 2013 00:01:53 +0100
xen-tools (4.4~rc1-1) unstable; urgency=low
* New upstream release candidate

View File

@@ -7,10 +7,16 @@
#
use strict;
use Test::More tests => 3;
use Test::More;
use File::Which;
BEGIN { use_ok( 'Git' ); }
if (which('git') and -d '.git') {
plan tests => 3;
} else {
plan skip_all => 'gitignore test is only thought for release testing.';
}
use_ok( 'Git' );
# First, check that no tracked files are ignored
my $cmd = Git::command_output_pipe('ls-files', '--ignored', '--exclude-standard');