Run t/gitignore.t only if git is installed and .git present
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user