From: Andreas Müller Date: Mon, 7 Mar 2011 22:43:30 +0000 (+0000) Subject: collect-qa-errors.sh: Simplify and make it work again X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b197077eb4d5e118de504f20b8282ef3392f1df2;p=openembedded.git collect-qa-errors.sh: Simplify and make it work again Signed-off-by: Andreas Mueller Signed-off-by: Khem Raj --- diff --git a/contrib/qa/collect-qa-errors.sh b/contrib/qa/collect-qa-errors.sh index 45a7283f1e..212e0cddb1 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