[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, piatti, updated. 709e868c634c0a0827d8a0c2579d7af028d98685

Holger Levsen holger at layer-acht.org
Sat Dec 3 13:51:39 UTC 2011


The following commit has been merged in the piatti branch:
commit 709e868c634c0a0827d8a0c2579d7af028d98685
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Dec 3 14:51:09 2011 +0100

    huge speedup grepping for unknown failues (from 40m to 2s)

diff --git a/home/piupartsm/bin/detect_well_known_errors b/home/piupartsm/bin/detect_well_known_errors
index 658d291..fcb8b19 100755
--- a/home/piupartsm/bin/detect_well_known_errors
+++ b/home/piupartsm/bin/detect_well_known_errors
@@ -106,6 +106,7 @@ done
 ALLKPR=`mktemp`
 KNOWNLOGS=`mktemp`
 UNKNOWNLOGS=`mktemp`
+KNOWNFAILURES=`mktemp`
 
 for SECTION in $SECTIONS
 do
@@ -165,7 +166,8 @@ do
 	# report unknown failures
 	#
 	find fail -name "*.log" > $LOGS
-	grep -v -f $KNOWNLOGS $LOGS > $UNKNOWNLOGS
+	grep -f $LOGS $KNOWNLOGS > $KNOWNFAILURES
+	grep -v -f $KNOWNFAILURES $LOGS > $UNKNOWNLOGS
 	if [ -s $UNKNOWNLOGS ] ; then
 		OUTPUT=$HTDOCS/$SECTION/unknown_failures.tpl
 		echo '<table class="righttable"><tr class="titlerow"><td class="titlecell">' > $OUTPUT
@@ -190,6 +192,6 @@ do
 	fi
 	cd "$OLDPWD"
 done
-rm $ALLKPR $LOGS $KNOWNLOGS $UNKNOWNLOGS
+rm $ALLKPR $LOGS $KNOWNLOGS $UNKNOWNLOGS $KNOWNFAILURES
 date
 

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list