Permalink
Browse files

fix filename

  • Loading branch information...
1 parent c65b33a commit 665ad617aaca4fcd0e02ede1d8e131eeadd6c928 @xdg xdg committed May 3, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/Dist/Zilla/App/Command/xtest.pm
@@ -67,12 +67,18 @@ sub execute {
if ( ref $arg eq 'ARRAY' && @$arg ) {
my $pcr = Path::Class::Rule->new->file->name(@$arg);
my @t = map { "$_" } $pcr->all( 'xt' );
- $app->process_args(qw/-r -l/, @t);
+ if ( @t ) {
+ $app->process_args(qw/-r -l/, @t) if @t;
+ $error = "Failed xt tests" unless $app->run;
+ }
+ else {
+ $self->log("no xt files found matching: @$arg");
+ }
}
else {
$app->process_args(qw/-r -l xt/);
+ $error = "Failed xt tests" unless $app->run;
}
- $error = "Failed xt tests" unless $app->run;
if ($error) {
$self->log($error);

0 comments on commit 665ad61

Please sign in to comment.