Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changing subject line in smoke report to list status info in email su…

…bject
  • Loading branch information...
commit 3a75fa83a4cc3ba6f12f92007c0c1f52fe052c0c 1 parent 26c2f29
Peter Leonard authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/Smolder/DB/SmokeReport.pm
View
11 lib/Smolder/DB/SmokeReport.pm
@@ -231,8 +231,15 @@ sub _send_emails {
my ($self, $results) = @_;
# setup some stuff for the emails that we only need to do once
- my $subject =
- "[" . $self->project->name . "] new " . ($self->failed ? "failed " : '') . "Smolder report";
+# my $subject =
+# "[" . $self->project->name . "] new " . ($self->failed ? "failed " : '') . "Smolder report";
+
+ my $subject = sprintf("Smolder - [%s] passed %i/%i tests: %s",
+ $self->project->name(),
+ $self->pass(),
+ $self->fail(),
+ ( $self->failed() ? "FAILURE" : "SUCCESS" ));
+
my $matrix = Smolder::TAPHTMLMatrix->new(
smoke_report => $self,
test_results => $results,
Please sign in to comment.
Something went wrong with that request. Please try again.