aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmx.de>2011-03-07 22:43:30 +0000
committerKhem Raj <raj.khem@gmail.com>2011-03-12 12:32:08 -0800
commitb197077eb4d5e118de504f20b8282ef3392f1df2 (patch)
tree3bb8ad307dd3d59a106fdced2fb190b5cf88d357 /contrib
parent7a92f740433a3268faa5e3448671a24f3eb42884 (diff)
downloadopenembedded-b197077eb4d5e118de504f20b8282ef3392f1df2.tar.gz
collect-qa-errors.sh: Simplify and make it work again
Signed-off-by: Andreas Mueller <schnitzeltony@gmx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/qa/collect-qa-errors.sh23
1 files changed, 6 insertions, 17 deletions
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