From 4b09c2f95dcc82c328383a3955c9425a0412aa1f Mon Sep 17 00:00:00 2001 From: David Butcher Date: Wed, 11 Apr 2012 10:24:14 +0100 Subject: [PATCH] Correction to nightly.pl --- nightly.pl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nightly.pl b/nightly.pl index ea8fbb2..082681e 100755 --- a/nightly.pl +++ b/nightly.pl @@ -78,17 +78,20 @@ foreach my $success (@built) } # print out a summary of this run -if (length @failed == 0) { - print "** No Build Failures"; +if (scalar(@failed) == 0) { + print "** No Build Failures\n"; } else { + print "** BUILDS FAILED\n"; for my $fail (@failed) { - print "$fail failed to build"; + print " $fail failed to build\n"; } } -if (length @warn == 0) { - print "** No Test Failures" +if (scalar(@warn) == 0) { + print "** No Test Failures\n"; +} else { + print "** TESTS FAILED!\n"; for my $warned (@warn) { - print "$warned failed test"; + print " $warned failed test\n"; } } #print ( $testlog ); -- 2.34.1