Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
slight refactr, more succint code
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed May 25, 2015
1 parent a7f80d1 commit 09f96d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/App/DuckPAN/Cmd/Test.pm
Expand Up @@ -21,11 +21,9 @@ sub run {

if ($self->full) {
$self->app->emit_error("Could not find dist.ini.") unless -e "dist.ini";
$ret = system("dzil test");
$self->app->emit_error("Could not begin testing. Is Dist::Zilla installed?") if $ret;
$self->app->emit_error("Could not begin testing. Is Dist::Zilla installed?") if $ret = system("dzil test");
} else {
$ret = system("prove -Ilib");
$self->app->emit_error("Tests failed! See output above for details") if $ret;
$self->app->emit_error("Tests failed! See output above for details") if $ret = system("prove -Ilib");
}

return $ret;
Expand Down

0 comments on commit 09f96d8

Please sign in to comment.