Correction to nightly.pl
authorDavid Butcher <dbutcher@arm.com>
Wed, 11 Apr 2012 09:24:14 +0000 (10:24 +0100)
committerDavid Butcher <dbutcher@arm.com>
Wed, 11 Apr 2012 09:24:14 +0000 (10:24 +0100)
nightly.pl

index ea8fbb2d3395ac66dfcb15d0e8dd28d291b4bf28..082681ea74814af4e9e2cbc0eeb63939e6acaa44 100755 (executable)
@@ -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 );