[oe] [PATCH] collect-qa-errors.sh: Simplify and make it work again
Andreas Mueller
schnitzeltony at gmx.de
Mon Mar 7 14:43:30 UTC 2011
Signed-off-by: Andreas Mueller <schnitzeltony at gmx.de>
---
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
--
1.7.2.3
More information about the Openembedded-devel
mailing list