Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do not notify barely a test file name.

  • Loading branch information...
commit 85005dcaa2fc8b9d9aafd89e20bd1b05488f7062 1 parent 7a5f309
@gugod gugod authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/Test/Continuous.pm
View
12 lib/Test/Continuous.pm
@@ -109,8 +109,8 @@ sub _analyze_tap_archive {
stream => TAP::Parser::Iterator::Stream->new( $fh )
});
- my @warning = ("$test: ");
- my @comment = ("$test: ");
+ my @warning = ();
+ my @comment = ();
while (my $result = $parser->next) {
if ($result->is_comment) {
push @comment, $result->as_string;
@@ -120,8 +120,12 @@ sub _analyze_tap_archive {
}
}
- Test::Continuous::Notifier->send_notify(join("\n", @warning), "warning");
- Test::Continuous::Notifier->send_notify(join("\n", @comment));
+ if (@warning) {
+ Test::Continuous::Notifier->send_notify(join("\n", "$test:", @warning), "warning");
+ }
+ if (@comment) {
+ Test::Continuous::Notifier->send_notify(join("\n", "$test:", @comment));
+ }
}
rmtree($dir);
Please sign in to comment.
Something went wrong with that request. Please try again.