[Piuparts-devel] [Git][debian/piuparts][develop] generate_daily_report: improve mail output.

Holger Levsen gitlab at salsa.debian.org
Fri May 31 03:35:10 BST 2019



Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
5c1831d0 by Holger Levsen at 2019-05-31T02:34:57Z
generate_daily_report: improve mail output.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- master-bin/generate_daily_report.in


Changes:

=====================================
master-bin/generate_daily_report.in
=====================================
@@ -82,11 +82,15 @@ for SECTION in $SECTIONS ; do
 		-type f -name '*.log' -newer $FAILURESTAMP -exec ls -1 {} + 2>/dev/null
 done | sed s#^$MASTER#$URLBASE# >> $DAILYTMP
 
-echo -n "$(cat $DAILYTMP | wc -l) new failures in total, " >> $DAILYREPORT
-echo "$(cat $DAILYTMP | (egrep "/(sid|$TESTING|testing2sid)/" 2>/dev/null || true) | wc -l) new failures sid, $TESTING and testing2sid:" >> $DAILYREPORT
+new_release_failures=$(cat $DAILYTMP | (egrep "/(sid|$TESTING|testing2sid)/" 2>/dev/null || echo) | wc -l)
+new_failures=$(cat $DAILYTMP | wc -l)
+new_failure_diff=$(( $new_failures - $new_release_failures ))
+echo -n "$new_failures new failures in total, " >> $DAILYREPORT
+echo "$new_release_failures new failures sid, $TESTING and testing2sid:" >> $DAILYREPORT
 # show failures (and show failures in sid, $TESTING and testing2sid first
 cat $DAILYTMP | (egrep "/(sid|$TESTING|testing2sid)/" 2>/dev/null || true) >> $DAILYREPORT
 echo >> $DAILYREPORT
+echo -n "$new_failure_diff other new failures:" >> $DAILYREPORT
 cat $DAILYTMP | (egrep -v "/(sid|$TESTING|testing2sid)/" 2>/dev/null || true) >> $DAILYREPORT
 rm $DAILYTMP
 



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/5c1831d07fcc4f12261252b340c9b9deaa3981ce

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/5c1831d07fcc4f12261252b340c9b9deaa3981ce
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190531/a0394051/attachment.html>


More information about the Piuparts-devel mailing list