Skip to content

Commit

Permalink
Verbose testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw committed Aug 11, 2012
1 parent a002179 commit 95bbaeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pudding/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ sub start {
my $self = shift;
make_path($self->{DocumentRoot}) unless -d $self->{DocumentRoot};
$self->{File} = writeconf(%$self);
push @servers, $self->{Pid} = startprocess($self);
$self->{Pid} = startprocess($self);
push @servers, $self;
}

=head2 Serve a file (allowing it to be tested)
Expand Down Expand Up @@ -181,8 +182,8 @@ sub errors {

END {
for (@servers) {
kill "SIGQUIT", $_;
# print $_->errors if $ENV{VERBOSE};
kill "SIGQUIT", $_->{Pid};
print $_->errors if $ENV{VERBOSE};
}
}

Expand Down

0 comments on commit 95bbaeb

Please sign in to comment.