aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmx.de>2011-02-15 05:06:48 +0000
committerKhem Raj <raj.khem@gmail.com>2011-02-14 14:14:00 -0800
commit1b1543c9f6ecd22ed700f0e598dac22183d6bc71 (patch)
treeec504945ad49ad81590ff93bdc2ef02713e69a2d /contrib
parent6262bfce3e4a138a888f4f222d39756a5927bcb1 (diff)
downloadopenembedded-1b1543c9f6ecd22ed700f0e598dac22183d6bc71.tar.gz
Add a small helper script listing all recipes with QA errors.
Signed-off-by: Andreas Mueller <schnitzeltony@gmx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/qa/collect-qa-errors.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/qa/collect-qa-errors.sh b/contrib/qa/collect-qa-errors.sh
new file mode 100755
index 0000000000..45a7283f1e
--- /dev/null
+++ b/contrib/qa/collect-qa-errors.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# A little script outputting information on all recipes with QA errors
+
+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
+done
+
+