[oe-commits] Andreas Müller : collect-qa-errors.sh: Simplify and make it work again

git version control git at git.openembedded.org
Sat Mar 12 20:55:19 UTC 2011


Module: openembedded.git
Branch: master
Commit: b197077eb4d5e118de504f20b8282ef3392f1df2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b197077eb4d5e118de504f20b8282ef3392f1df2

Author: Andreas Müller <schnitzeltony at gmx.de>
Date:   Mon Mar  7 22:43:30 2011 +0000

collect-qa-errors.sh: Simplify and make it work again

Signed-off-by: Andreas Mueller <schnitzeltony at gmx.de>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 contrib/qa/collect-qa-errors.sh |   23 ++++++-----------------
 1 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/contrib/qa/collect-qa-errors.sh b/contrib/qa/collect-qa-errors.sh
index 45a7283..212e0cd 100755
--- a/contrib/qa/collect-qa-errors.sh
+++ b/contrib/qa/collect-qa-errors.sh
@@ -1,26 +1,15 @@
 #!/bin/bash
 
-# A little script outputting information on all recipes with QA errors
+# A little script outputting information on all recipes with QA issues
 
 bb_tmp_dir=$(bitbake -e | grep 'TMPDIR="' | sed -e s/TMPDIR=// \
                                                 -e s/\"//g)
 
-# each temp dir is checked
-for log_dir in ${bb_tmp_dir}/work/*/*/temp ; do
-	# checked only log files
-	for log_file in ${log_dir}/log.do_* ; do
-		if [ -e  $log_file ] ; then
-			qa_err=$(grep 'ERROR: QA' $log_file)
-			if [[ -n  $qa_err ]] ; then
-				# Bingo
-				str=${log_file%/*}
-				str=${str%/*}
-				echo $str
-				# output only one occurance per recipe
-				break
-			fi
-		fi
-	done
+# report each log.qa_package in temp dir
+for log_dir in ${bb_tmp_dir}/work/*/*/temp/log.qa_package ; do
+	str=${log_dir%/*}
+	str=${str%/*}
+	echo $str
 done
 
 





More information about the Openembedded-commits mailing list