Streamline postmortem analysis, and fix non-essential-test report being lost
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 30_before_script.bash
index de03bdf..46eef91 100755 (executable)
@@ -139,11 +139,21 @@ my $curskip_re = qr{^ === \x20 \QSkipping nonessential autogenerated tests: \E([
 my (undef, @chunks) = (split qr/$curmod_re/, <>);
 while (@chunks) {
   my ($mod, $log) = splice @chunks, 0, 2;
-  print "!!! Skipped nonessential tests while installing $mod: $1\n"
+  print "!!! Skipped nonessential tests while installing $mod:\n\t$1\n"
     if $log =~ $curskip_re;
 }
 ' <<< "$LASTOUT")
 
+    if [[ -n "$INSTALLDEPS_SKIPPED_TESTLIST" ]] ; then
+      POSTMORTEM="$POSTMORTEM$(
+        echo "The following non-essential tests were skipped during deps installation"
+        echo "============================================================="
+        echo "$INSTALLDEPS_SKIPPED_TESTLIST"
+        echo "============================================================="
+        echo
+      )"
+    fi
+
     unset HARNESS_SUBCLASS
   fi