Skip to content

Commit

Permalink
Merge pull request RexOps#1590 from RexOps/skip_without_git
Browse files Browse the repository at this point in the history
Fix skipping tests without git
  • Loading branch information
ferki committed May 28, 2023
2 parents d057320 + 7b2d7ae commit 8a3eb50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Revision history for Rex
[API CHANGES]

[BUG FIXES]
- Fix skipping tests without git

[DOCUMENTATION]

Expand Down
7 changes: 5 additions & 2 deletions t/scm/git.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

our $VERSION = '9999.99.99_99'; # VERSION

use Test::More tests => 8;
use Test::More;
use Test::Exception;

use File::Spec;
Expand All @@ -19,7 +19,10 @@ $::QUIET = 1;

my $git = can_run('git');

if ( !defined $git ) {
if ( defined $git ) {
plan tests => 8;
}
else {
plan skip_all => 'Can not find git command';
}

Expand Down

0 comments on commit 8a3eb50

Please sign in to comment.